1838674 Members
6878 Online
110128 Solutions
New Discussion

Folder/Group

 
Eric Jacklin
Regular Advisor

Folder/Group

Hi,

xyz is a user belongs to X group and we have one more user belongs to Y group.

can i create a folder where both the user can have access to folder.

What permission should i give and what ownership should i give to that folder so that two different group can access the same folder.
4 REPLIES 4
Pete Randall
Outstanding Contributor

Re: Folder/Group

Sure. Make xyz the owner of the directory and give the y group ownership.


Pete

Pete
Ph. LAQUERRIERE
Occasional Advisor

Re: Folder/Group

Yes you can create a folder with permission of W group and you put in /etc/group for W the users xyzw for accessing the files.
for ex:

X:10:x,y,z
Y:20:w
W:30:x,y,z,w

regards
Deepak Kr
Respected Contributor

Re: Folder/Group

Hi,

You can also use ACLs for this task.

setacl -m group::permission rwx Folder name

Cheers!!
"There is always some scope for improvement"
Jeeshan
Honored Contributor

Re: Folder/Group

yeah ACL is the best choice as stated above.
a warrior never quits