How to create a user account on Ubuntu Linux

http‮.www//:s‬lautturi.com
How to create a user account on Ubuntu Linux

To create a new user account on an Ubuntu Linux system, you can use the adduser command. The adduser command is a standard Unix command that is used to create a new user account on the system.

  1. Log in to your Ubuntu system as the root user.

  2. Run the adduser command with the desired username as an argument. For example, to create a new user account with the username myuser, you can use the following command:

adduser myuser

This will create a new user account with the default settings, including a default home directory and a default group.

  1. Follow the prompts to set the password and other information for the new user account.

  2. To customize the settings for the new user account, you can use the usermod command. For example, to set the user's full name and add the user to additional groups, you can use the following command:

usermod -c "Full Name" -a -G group1,group2 myuser

This will set the user's full name to "Full Name" and add the user to the group1 and group2 groups.

  1. To set the user's login shell, you can use the -s option. For example, to set the user's login shell to bash, you can use the following command:
usermod -s /bin/bash myuser
  1. To delete a user account, you can use the deluser command. For example:
deluser myuser

This will delete the user account and the user's home directory.

Created Time:2017-10-16 14:38:45  Author:lautturi