Saturday, December 3, 2011

Disable login of all users except root

sudo touch /etc/nologin

Note: Now, only root can login to the system. Login as root and delete that file to allow other users to login

rm /etc/nologin

No comments: