Only root or users with sudo access can add a user to a group. How to Add an Existing User to a Group # To add an existing user to a secondary group, use the usermod -a -G command followed the name of the group and the user: sudo usermod -a -G groupname u
For example, to add the user geek to the group sudo, use the following command: usermod -a -G sudo geek. Change a User’s Primary Group. While a user account can be part of multiple groups, one of the groups is always the “primary group” and the othe
Add a New Group. To add a new group in Linux, use the following command – $ sudo groupadd editors In the above command ,It is creates a group called editors. Adding an Existing User to a Group. For adding tutorialspoint user to the editors group, use th
Post a Comment:
Showing 0 Comments: