> 
> I have 3 user account in my PC namely u1, u2, u3.
> I want to disable the *passwd* command for the u2 account.
> how can it be done

If the aim is to prevent the user u2 from being able to change his
password at all, a straightforward way is to adjust the "Days before
password may be changed" and "Days after which password must be changed"
fields of the /etc/shadow file suitably. "Man 5 shadow" gives the
details.

This assumes that your setup uses shadow passwords.

- Manas Laha

--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to