Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
BASH lock user account and unlock
01-19-2010, 08:32 AM
Post: #1
BASH lock user account and unlock
This will either disable the user from logging into the system or enable them to.

you can manually do this using a text editor like vi editing the /etc/shadows by placing the ! before their password hash. This method is more safer for you though.
Code:
#locks a user name
passwd -l username

Code:
#unlocks the user name
passwd -u username
Visit this user's website Find all posts by this user
Quote this message in a reply
01-19-2010, 11:21 PM
Post: #2
RE: BASH lock user account and unlock
This is so easy to do in Linux . . .

There's a fine line between genius and insanity. I have erased this line.
Oscar Levant
There's a fine line between an administrator and black hat hacker. I have erased this line.
Dr DEBCOL
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: