LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Security (https://www.linuxquestions.org/questions/linux-security-4/)
-   -   User should not change password (https://www.linuxquestions.org/questions/linux-security-4/user-should-not-change-password-596323/)

shan_nathan 11-01-2007 08:57 AM

User should not change password
 
Dear all,

How to deny a normal user , for changing his own password.


Thanks

reverse 11-01-2007 10:24 AM

Maybe something like:

Code:

chmod -s `which passwd`
I don't know if you should do that.. nor why you'd want to do that.

Micro420 11-02-2007 10:50 AM

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.

complich8 11-02-2007 03:42 PM

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.