DIGIT-ARC read-only archive · snapshot: July 23, 2026

assign multiple groups to a folder :(

9 posts · originally from https://geek.digit.in/community/threads/assign-multiple-groups-to-a-folder.119393/

iinfi
iinfi Original post #1
Jul 16, 2009 at 4:14 PM
hi all

is it possible to assign multiple groups to a folder?

eg i have a folder /shared
i want the folder to be accessible by users from groups g1,g2,g3.

i can add a user to multiple groups but cannot assign a file/folder to multiple groups.
Liverpool_fan
Jul 16, 2009 at 5:11 PM
Which particular users who want to share that folder? I mean just create a new group with those users, chgrp the folder and set group permissions.

I don't see why you want multiple "groups" having similar permission. Care to explain?

Of course, if someone knows the answer I would be delighted to be enlightened.
iinfi
iinfi #3
Jul 16, 2009 at 5:31 PM
i am in the process of creating a linux server which is joined to windows AD domain.
windows desktop users who are authenticated with the windows AD are directed to shared folders on the linux file server.
i have say, share1 share2 share3 mapped to IT, Finance, Sales depts.
so in case i need to share the folder share2 with heads of IT and Finance and other members f the management then its better off to add the head of IT and Finance to the folder group and add the group containing the management to the folder group.
hope i am making it clear.
any clues?
Liverpool_fan
Jul 16, 2009 at 5:57 PM
First I have no idea about Active Directory.

You mean share1 be accessible to IT, share2 to finance, and share3 to sales. But certain non-members of finance should have same rights as their members to share 2, right?
Why don't you simply add those users of "management" to the finance group using usermod -a -G command?

Or you can create another group with all users of finance group, as well as the management team members and chgrp to that?

Or is it I am totally misunderstanding your question.
iinfi
iinfi #5
Jul 16, 2009 at 9:32 PM
thanks for your effort ... since you dont know AD or how DS work, you probably didnt understand the situation very clearly.
i m testing something for a org with 500+ users. management wud be much easier if we are able to assign groups to folders.
i had posted on HP forums as well n got this reply.
*forums13.itrc.hp.com/service/forum...356075&admit=109447627+1247758359253+28353475
i m yet to chk if ACLs will resolve my issue.
if u have any comments on the replies there plz share
:)
A
Jul 22, 2009 at 6:13 PM
i knw about ad bt dnt knw about linux very much becz m just complete 033
mediator
Jul 22, 2009 at 8:57 PM
Try this....

Code:
setfacl -m g:[B]group_name[/B]:rwx  [B]/shared[/B]
K
kgas #8
Aug 31, 2009 at 6:38 PM
This link may help you. *www.howtoforge.com/samba_active_directory
iinfi
iinfi #9
Sep 3, 2009 at 11:09 PM
hey thanks ... i found out a workaround from the HP forums link i have posted earlier.

use normal file permissions and use ACLs when absolutely essential ...
thanks