1. Hey Guest Did you know you can win an Honor 10 phone worth ₹33,000 and an additional ₹70,000 in paytm vouchers, just by replying to some threads and taking part in the discussions happening in the Honor Hub?

    What are you waiting for? Start commenting and start winning! Remember to read the instructions posted here.

    Dismiss Notice

assign multiple groups to a folder :(

Discussion in 'Open Source' started by iinfi, Jul 16, 2009.

Thread Status:
Not open for further replies.
  1. iinfi

    iinfi mekalodu

    Joined:
    Oct 22, 2004
    Messages:
    1,534
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Navi Mumbai
    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.
     
  2. Liverpool_fan

    Liverpool_fan Sami Hyypiä, LFC legend

    Joined:
    Jun 19, 2007
    Messages:
    2,209
    Likes Received:
    26
    Trophy Points:
    0
    Location:
    Нью-Дели
    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.
     
  3. OP
    OP
    iinfi

    iinfi mekalodu

    Joined:
    Oct 22, 2004
    Messages:
    1,534
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Navi Mumbai
    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?
     
  4. Liverpool_fan

    Liverpool_fan Sami Hyypiä, LFC legend

    Joined:
    Jun 19, 2007
    Messages:
    2,209
    Likes Received:
    26
    Trophy Points:
    0
    Location:
    Нью-Дели
    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.
     
  5. OP
    OP
    iinfi

    iinfi mekalodu

    Joined:
    Oct 22, 2004
    Messages:
    1,534
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Navi Mumbai
    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.
    http://forums13.itrc.hp.com/service...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
    :)
     
  6. arvendu601

    arvendu601 New Member

    Joined:
    Sep 29, 2008
    Messages:
    42
    Likes Received:
    0
    Trophy Points:
    0
    i knw about ad bt dnt knw about linux very much becz m just complete 033
     
  7. mediator

    mediator New Member

    Joined:
    Mar 18, 2005
    Messages:
    2,491
    Likes Received:
    16
    Trophy Points:
    0
    Location:
    In ur Evil Mind!
    Try this....

    Code:
    setfacl -m g:[B]group_name[/B]:rwx  [B]/shared[/B]
    
     
  8. kgas

    kgas New Member

    Joined:
    Sep 27, 2008
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    0
  9. OP
    OP
    iinfi

    iinfi mekalodu

    Joined:
    Oct 22, 2004
    Messages:
    1,534
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    Navi Mumbai
    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
     
Thread Status:
Not open for further replies.

Share This Page