Monday, October 6, 2008

To turn off a user’s account temporarily

To turn off a user’s account temporarily, you can use usermod to change the expira-
tion date for the account. Because it specifies that his account expired in the past
(December 31, 2007), the following command line prevents Max from logging in:
$ sudo usermod -e "12/31/07" max
See the usermod man page for more information.

No comments:

Post a Comment