How to add a new user?

To add a new user in Linux, you can use the adduser command. Here’s how to do it:

  1. Open a terminal.

  2. Run the following command:

    sudo adduser username

    Replace username with the desired username for the new user.

  3. Follow the prompts:

    • You will be asked to enter a password for the new user.
    • You may also be prompted to provide additional information such as the user's full name, room number, work phone, home phone, and other details. You can press Enter to skip any of these fields.
  4. Confirm the information:

    • After entering the details, you will be asked to confirm that the information is correct. Type Y and press Enter to proceed.

The new user will be created, and a home directory will be set up for them at /home/username.

0 Comments

no data
Be the first to share your comment!