How do you create a new user in Linux using the adduser command?

To create a new user in Linux using the adduser command, follow these steps:

  1. Open a terminal.

  2. Run the following command (replace username with the desired username):

    sudo adduser username
  3. Set a password: You will be prompted to enter a password for the new user.

  4. Provide optional information: You can skip additional prompts (like full name, room number, etc.) by pressing Enter.

  5. Confirm the information: You will be asked to confirm the details you entered.

After completing these steps, the new user will be created. You can verify the user creation by running:

id username

This command will display the user ID and group information for the newly created user. If you have any further questions, feel free to ask!

0 Comments

no data
Be the first to share your comment!