REDHAT missing functionality - force user to change password on login
Good day all
I have now been trying to find an answer for the following for a while and can't seem to get anything. On previous linux distros we had the option available "passwd -e" which allowed us to force the user to change their passwords upon the next login. This functionality however seems to be excluded from latest linux distros (currently using RHEL 5.4)... Does anybody know how the same effect can be achieved and perhaps any idea on why this option was removed as it was great for securing passwords. Regards Machiel |
You may force a user password change on RHEL5 using the chage(1) command. Please read its manpages.
My suggestion: Code:
# chage -M 3650 -d 1985-01-01 <user_here> |
HI Anomie
I was thinking of using chage as well, however from some posts that I have found at different sources, it suggests that this does not work when users use ssh protocol to connect to the systems. I will however give it a try with one of the users in order to test whether it works or not. Regards Machiel |
Thank you Anomie, I tested the chage option now and it does work, even when using ssh or other connection methods.
Regards Machiel |
Quote:
Code:
# chage -d 0 <user_here> In your example, if the password inactive field is also set, it may lock the user out entirely due to the user not changing their expired password in 26 years. |
Quote:
|
All times are GMT -5. The time now is 12:02 AM. |