Windows,Android,Linux,Apple Mac,Iphone,Ipad,Tips and Tricks,tutorial for Problem.Repair,Recovery,data,Troubleshooting,Computer Help,Software,Tweak Computers,Guide to Windows,linux and software Install guide.MotherBoard repair,Hardware.GSM,Phone,Wireless,WIFI,Msn,Ubuntu.Blogger tips....
Locking and Unlocking user account on Linux
If you need to politely refuse a login for a user, you use the command
# usermod -s /sbin/nologin UserLoginName
To unlock the user account
# usermod -s /bin/bash UserLoginName
Alternatively, you can use the commands to lock the user account