Originally Posted by varunkant
What is the command that a user can not change his passwd...
thanks in advanced..
You could "chmod 700 /bin/passwd".
Anyway, why would you want to do this?
The passwords are stored encrypted, so you can't know them anyway even if you are root. At most, you can change the passwd by another. Whatever a user do with it's password will not prevent you from being able to change it so there's no point in disallowing that for users.
If you want to harden the system, there are ways to ensure that the passwords are secure, and refuse to accept them if they are not.