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 . . .

"I dont know with what weapons World War 3 will be fought with, but i know World War 4 will be fought with stones and sticks" - Albert Einstein
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


 Quick Theme: