How to add user to a group in Linux system

0 votes

Hi Guys,

I have created a group in the Linux system. Now I want to add a user to this group. How can I do that?

Aug 14, 2020 in Linux Administration by akhtar
• 38,240 points
218 views

1 answer to this question.

0 votes

Hi@akhtar,

In Linux, different users have different roles and responsibilities. Some users might need the ability to execute applications, while others are restricted from accessing specific files and folders. Groups let you create categories of users with pre-set permissions. Instead of managing permissions for each user account, you can simply add a user to a group to grant the appropriate permissions. You can use the below command to add a user to a group.

$ useradd -G mygroup user

answered Aug 14, 2020 by MD
• 95,340 points

Related Questions In Linux Administration

0 votes
1 answer

How to find the group associated with a user in linux?

To list all the groups groups or to list ...READ MORE

answered Jun 21, 2019 in Linux Administration by DareDev
• 6,890 points
373 views
0 votes
1 answer

How to create a group in Linux system?

Hi@MD, On Linux, group information is held in the /etc/group file. ...READ MORE

answered Aug 14, 2020 in Linux Administration by akhtar
• 38,240 points
201 views
0 votes
1 answer

How to check permissions of a folder in the Linux system?

Hi@akhtar, You can use ls command to check ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,340 points
3,936 views
0 votes
0 answers
0 votes
1 answer

-bash: cd: /root/: Permission denied

Hi@akhtar, You got this error because your user ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,340 points
22,250 views
0 votes
1 answer

How to give the read power of a folder in Linux system?

Hi@akhtar, You can use chmod command in your ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,340 points
276 views
0 votes
1 answer

ls: cannot open directory '.': Permission denied

Hi@akhtar, You got this error because your user ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,340 points
9,248 views
0 votes
1 answer

How to remove write permission from a folder in Linux system?

Hi@akhtar, You can use chmod command to remove ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,340 points
909 views
0 votes
1 answer

How to change the group of a folder in Linux system?

Hi@akhtar, You can use chgrp command in your ...READ MORE

answered Aug 14, 2020 in Linux Administration by MD
• 95,340 points
290 views
0 votes
1 answer

How to check permissions of a file in the Linux system?

Hi@akhtar, If you prefer using the command line, ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,340 points
643 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP