Linux Unlock An Account

by on February 15, 2012 · 2 comments· last updated at February 15, 2012

How do I unlock an user account (user login id) under Linux operating systems?

The passwd command, used for changing passwords as well used for locking and unlocking accounts on Linux and Unix-like operating systems.

Linux: Unlocking An Account Syntax

The syntax is as follows:

 
passwd -u username
 

To unlock the password of the named account called vivek, type:

 
passwd -u vivek
 

This option re-enables a password by changing the password back to its previous value (to the value before using the -l option).



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 2 comments… read them below or add one }

1 ray February 26, 2012 at 2:32 am

usermod -u username

Reply

2 ray February 26, 2012 at 2:32 am

make that a capital -U

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , , ,

Previous Faq:

Next Faq: