How to Create a User With No Login in Ubuntu


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.

Related Searches


Promoted By Zergnet


You May Also Like

Related Searches

Check It Out

Geek Vs Geek: Robot battles, hoverboard drag race, and more

Is DIY in your DNA? Become part of our maker community.
Submit Your Work!