User should not change password
Dear all,
How to deny a normal user , for changing his own password. Thanks |
Maybe something like:
Code:
chmod -s `which passwd` |
Not sure if this will work, but you can also use the chage command set the MINIMUM days for a password change to something like 9999. This will force a user to wait 9999 days before he or she can change their password
Another thing to look at would be in /etc/pam.d/. Maybe there is a setting somewhere in there to do this by default. |
I'd go for chmod o-rx `which passwd` myself.
same effect, except that passwd still works. You could go further and enable specific users or groups to execute the passwd command using posix acl's... |
All times are GMT -5. The time now is 12:56 AM. |