How to lock or unlock the user accounts in linux os ?

 How to lock or unlock the user accounts in linux os ?

using the command like as the 

usermod -l username 

lock this account

unlock this account 

usermod -u username






tail username /etc/passwd

whether user account getting lock or unlock , use the command we can check it out 

usermod -- lock username

username --unlock username

tail username /etc/passwd







Comments

Popular posts from this blog

SQL Interview Questions: