Managing file permissions using groups

From Notes_Wiki
Revision as of 04:24, 10 November 2012 by Saurabh (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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