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 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 ... How...
How to Make a User Hidden in Linux
Creating a hidden user account in Linux is helpful in a few ways. ... Hide User from Ubuntu Login Screen; Easy Tweaks:...
How to Add New Users to Linux
Linux is an operating system with a tremendous amount of functionality for both casual users and adept computer wizards. Using any version...
How to Disable Password Authentication in Ubuntu
How to Get Ubuntu Login & Password. How to Disable Password Authentication in Ubuntu; Print this article; Instructions. 1. ... Ubuntu Documentation:...
How to Change the Password in Ubuntu
How to Change My User Name in Ubuntu. When you create the master account in the Ubuntu operating system, ... How to...