Difference between revisions of "Managing file permissions using groups"

From Notes_Wiki
(Created page with "=Managing file permissions using groups= To allow set of users to have access to same set of files groups can be used. ==Creating groups== To create group use: <pre> groupa...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
=Managing file permissions using groups=
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Miscellaneous OS configuration]] > [[Managing file permissions using groups]]


To allow set of users to have access to same set of files groups can be used.
To allow set of users to have access to same set of files groups can be used.
Line 25: Line 25:
chgrp -R <group_name> files
chgrp -R <group_name> files
</pre>
</pre>
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Miscellaneous OS configuration]] > [[Managing file permissions using groups]]

Latest revision as of 15:50, 22 July 2022

Home > CentOS > CentOS 6.x > Miscellaneous OS configuration > Managing file permissions using groups

To allow set of users to have access to same set of files groups can be used.

Creating groups

To create group use:

groupadd <group_name>


Adding users to groups

Then users can be added to group using:

usermod -a -G <group_name> usernames


Setting proper group permissions on files

Finall change the group of files / folders to desired group using:

chgrp -R <group_name> files


Home > CentOS > CentOS 6.x > Miscellaneous OS configuration > Managing file permissions using groups