How to create a group in Linux system

0 votes

Hi Guys,

I am new in Linux system. I want to create one group. So that I can add users to that group. Can anyone tell me how can I do that?

Aug 13, 2020 in Linux Administration by MD
• 95,140 points
104 views

1 answer to this question.

0 votes

Hi@MD,

On Linux, group information is held in the /etc/group file. You can use commands to create a group, add a user to a group, display a list of the users who are in the group, and remove a user from a group. To create a group you can use the below command.

$ groupadd mygroup
answered Aug 13, 2020 by akhtar
• 38,180 points

Related Questions In Linux Administration

0 votes
1 answer

How to add user to a group in Linux system?

Hi@akhtar, In Linux, different users have different roles ...READ MORE

answered Aug 13, 2020 in Linux Administration by MD
• 95,140 points
113 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,140 points
135 views
0 votes
1 answer

How to create a symlink in Linux?

To create a symbolic link, you can ...READ MORE

answered Jan 31, 2019 in Linux Administration by Omkar
• 69,110 points
245 views
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 20, 2019 in Linux Administration by DareDev
• 6,890 points
246 views
0 votes
1 answer
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,140 points
282 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,140 points
767 views
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,140 points
8,035 views
0 votes
1 answer

How to configure SSH server in RHEL/CentOS?

Hi@MD, To configure SSH server to your system, ...READ MORE

answered Mar 30, 2020 in Linux Administration by akhtar
• 38,180 points
184 views
0 votes
1 answer

Can we patch azure linux vm using ansible?

Hi@avinash, You can connect your Azure VM from ...READ MORE

answered Oct 29, 2020 in Linux Administration by akhtar
• 38,180 points
229 views