How To Add Group In Linux?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
1. Open the terminal window.
2. Type in the command “sudo groupadd <groupname>”.
3. Enter your password when prompted.
4. You will see the message “group created successfully”.
5. To add a user to the group, use the command “sudo usermod -a -G <groupname> <username>”.
6. The user will now be added to the group.