-
Notifications
You must be signed in to change notification settings - Fork 223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Account bumps password set time, even when it doesnt #1510
Comments
Thank for the report, @djzort! In the case of I'd say the intent of
|
In Rex/User/Linux.pm perhaps something like
The problem with the above is that if the expiry is removed from the config, then you would expect it to be removed from the system - but it wouldn't be. Reviewing that Linux.pm module, that same sort of counter-intuitive expectation seems to exist with other values too, such as 'crypt_password' and 'comment'. In both cases i would assume that removing them would remove their respective value. On the other hand I would expect the absence of 'uid' or 'home' to mean 'don't care'. Not sure what the right answer is. |
Describe the bug
The 'account' function always bumps the password set time, even when it doesnt change anything.
Consider this simple config
Then i run rex ( i have etckeeper installed )
Run rex again, then...
The "date of last password change" field changes (per man shadow)
I dont think that field should change if the password doesnt change.
YMMV on that. I can see how someone could make an argument that it should.
How to reproduce it
Create a user and run rex over and over. Diff the shadow files
Expected behavior
I dont think that field should change if the password doesnt change. Or perhaps be controllable.
Circumstances
Debug log
Is this really needed?
The text was updated successfully, but these errors were encountered: