Monday, May 24, 2010

How to disable root login (or any user's login)

If you want to disable root user's login (or any other user's login), you can change his/her home directory to /sbin/nologin or /bin/false.

Now user can not login into any shell.

  

1 comment:

There was an error in this gadget