Assigning the Nologin shell to a Linux account lets the user bypass the usual login procedure and get straight into the system. This differs from the usual login process where Linux typically supplies the user with a default shell, such as Bash or Ksh. When Nologin is specified, the shell immediately rejects the logon and boots the user from the system.
Log into Ubuntu using your user name and password. Type su root and press Enter.
Supply and enter your root password to gain full system control privileges.
Create a new user account. Enter useradd -s /usr/sbin/nologin username. Replace "username" with the name of the user you would like to create. This creates a new "No Login" account.
Tips & Warnings
- Use this method when adding users who don't need shell access; for example, when creating a new user for mail server or FTP access.
How to Make a User Hidden in Linux
Creating a hidden user account in Linux is helpful in a few ways. Most significantly, other users will not be able to...
How to Add New Users to Linux
From the Unity browser on the Ubuntu desktop, select the Gear icon in the upper-right corner of the screen, choose "System Settings..."...
How to Change My User Name in Ubuntu
When you create the master account in the Ubuntu operating system, you can add users and set the permissions for them. You...
How to Change the Password in Ubuntu
Ubuntu is an open source, free computer operating system. It is the most popular and user friendly of over 600 Linux distributions...
How to Disable Password Authentication in Ubuntu
Ubuntu Linux makes use of passwords to authenticate user log-on requests in its default configuration. If your system is of a lower...