Frequent Question: What Is the Command to Add a New User in Linux?
Contents to Add/Create a New User, All You’ve to Follow the Command ‘Useradd’ or ‘Adduser’ with ‘Username’. the ‘Username’ Is a User Login Name, That Is Used...
Contents
To add/create a new user, all you’ve to follow the command ‘useradd’ or ‘adduser’ with ‘username’. The ‘username’ is a user login name, that is used by user to login into the system.
How do I add a new user in Linux?
How to Add a User to Linux
- Log in as root.
- Use the command useradd “name of the user” (for example, useradd roman)
- Use su plus the name of the user you just added to log on.
- “Exit” will log you out.
Must Read
How do you create a new user account in Linux from the command line?
To create a user account from a shell prompt:
- Open a shell prompt.
- If you are not logged in as root, type the command su – and enter the root password.
- Type useradd followed by a space and the username for the new account you are creating at the command line (for example, useradd jsmith).