To create a new user in Linux using the adduser command, follow these steps:
-
Open a terminal.
-
Run the following command (replace
usernamewith the desired username):sudo adduser username -
Set a password: You will be prompted to enter a password for the new user.
-
Provide optional information: You can skip additional prompts (like full name, room number, etc.) by pressing Enter.
-
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!
