How to Lock an user account??????

Using help of usermod command we lock a user account.Only a super user can used usermod command.
Syntax:-
#usermod -L [username]
L-Lock user account.

Example:-
#usermod -L john
here john is a user name.

Using help of usermod command we unlock a user account.
Syntax:-
#usermod -U [user name]
U-unlock user account.

Example:-
#usermod -U john
here john is a username.

Comments

Popular posts from this blog

Few tips for Linux User related to MAN page

SEND Mail Using JAVA Mail API