![]() RELATED: How to Add a User to the sudoers File in Linux Change a User’s Primary Group usermod -a -G examplegroup exampleusernameįor example, to add the user geek to the group sudo, use the following command: usermod -a -G sudo geek To add an existing user account to a group on your system, use the usermod command, replacing examplegroup with the name of the group you want to add the user to and exampleusername with the name of the user you want to add. You’ll need to use sudo with this command as well (or, on Linux distributions that don’t use sudo, you’ll need to run the su command on its own to gain elevated permissions before running the command). ![]() If you want to create a new group on your system, use the groupadd command following command, replacing new_group with the name of the group you want to create. ![]() RELATED: What's the Difference Between Sudo and Su in Linux?
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |