Once you’re satisfied with how your new user has been set up, you can log out of the root user and log in using your new user’s credentials.įor more in-depth information on user management, you can check out the Arch Linux wiki here. You will then be prompted to enter a new password for the user, and then confirm that password again. Once you’ve added your new user, it is highly recommended to set a password for the user, which can be done using the passwd command: # passwd username To view the default values set on a new user, run the useradd command with just the -D switch: # useradd -D ![]() If you created a new user without adding any groups to it, you can add the user to groups later using the usermod command and passing the additional groups as a comma separated list: # usermod -aG If you wish to add the user to additional groups, such as the sudo group, you can add the -G flag followed by a comma separated list of groups: # useradd -m -G sudo username This command creates a new user with all the default values, in a single group named after the user, and uses the -m switch to create a new directory for the user in /home. The basic command to create a new user is the following: # useradd -m username Here’s a quick guide on how to set up new users on your Arch Linux system. You can use separate accounts to restrict access to system files, other user’s files and commands that modify the system such as the package manager. One of the first things you should do once your system is up and running is to create separate users for you or anyone else who uses your machine. When used improperly (or even maliciously!), this level of access can wreak havoc on your system. ![]() This account has unrestricted access to the entire system. When you initially set up your new Arch Linux system, you log in using the su or root account.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |