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

0 votes

Hi Guys,

I have one folder that is assigned to a group. Now I want to change the group of this folder. How can I do that?

Aug 14 in Linux Administration by akhtar
• 25,030 points
49 views

1 answer to this question.

0 votes

Hi@akhtar,

You can use chgrp command in your Linux system. This command has the capability to change the group of a folder. I have attached one example below.

$  chgrp mygroup Music/
$ ls -ld Music/
drwxr-xr-x. 2 root mygroup 6 Jul 26 18:55 Music/

answered Aug 14 by MD
• 56,480 points

Related Questions In Linux Administration

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 in Linux Administration by MD
• 56,480 points
69 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,850 points
180 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 13 in Linux Administration by akhtar
• 25,030 points
46 views
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 in Linux Administration by MD
• 56,480 points
44 views
0 votes
1 answer

-bash: cd: /root/: Permission denied

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

answered Aug 13 in Linux Administration by MD
• 56,480 points
644 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 in Linux Administration by MD
• 56,480 points
250 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 in Linux Administration by MD
• 56,480 points
57 views
0 votes
1 answer

How to change the owner of any folder in Linux system?

Hi@akhtar, Linux system has one command named chown. This ...READ MORE

answered Aug 13 in Linux Administration by MD
• 56,480 points
63 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 in Linux Administration by MD
• 56,480 points
71 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 in Linux Administration by MD
• 56,480 points
54 views