<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: assign multiple groups to a folder :( in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461154#M37535</link>
    <description>[root@fs ~]# getfacl /shares/it/&lt;BR /&gt;getfacl: Removing leading '/' from absolute path names&lt;BR /&gt;# file: shares/it&lt;BR /&gt;# owner: itadmin&lt;BR /&gt;# group: it&lt;BR /&gt;user::rwx&lt;BR /&gt;user:u1:rwx&lt;BR /&gt;user:u2:rwx&lt;BR /&gt;user:u3:rwx&lt;BR /&gt;user:u5:rwx&lt;BR /&gt;user:u6:rwx&lt;BR /&gt;group::r-x&lt;BR /&gt;group:gr1:---&lt;BR /&gt;mask::rwx&lt;BR /&gt;other::---&lt;BR /&gt;&lt;BR /&gt;i use setfacl and getfacl to set ACLs&lt;BR /&gt;here in the above case i have users u5 and u6 in the group gr1.&lt;BR /&gt;as gr1 has no privileges to the folder u5 and u6 also should not have any privileges.&lt;BR /&gt;but whn i log in as u5 or u6 i have full rights on the folder.&lt;BR /&gt;restrict privileges does not take precedence over the other privileges. :(</description>
    <pubDate>Thu, 20 Aug 2009 10:29:57 GMT</pubDate>
    <dc:creator>iinfi1</dc:creator>
    <dc:date>2009-08-20T10:29:57Z</dc:date>
    <item>
      <title>assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461144#M37525</link>
      <description>hi all&lt;BR /&gt;&lt;BR /&gt;is it possible to assign multiple groups to a folder?&lt;BR /&gt;&lt;BR /&gt;eg i have a folder /shared&lt;BR /&gt;i want the folder to be accessible by users from groups g1,g2,g3.&lt;BR /&gt;&lt;BR /&gt;i can add a user to multiple groups but cannot assign a file/folder to multiple groups. &lt;BR /&gt;case:&lt;BR /&gt;i am in the process of creating a linux server which is joined to windows AD domain.&lt;BR /&gt;windows desktop users who are authenticated with the windows AD are directed to shared folders on the linux file server.&lt;BR /&gt;i have say, share1 share2 share3 mapped to IT, Finance, Sales depts.&lt;BR /&gt;&lt;BR /&gt;so in case i need to share the folder share2 with heads of IT and Finance and other members of the management, then its better off to add the head of IT and Finance to the folder group and add the group containing the members of the management to the folder group.&lt;BR /&gt;hope i am making it clear.&lt;BR /&gt;any clues?</description>
      <pubDate>Thu, 16 Jul 2009 11:05:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461144#M37525</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-07-16T11:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461145#M37526</link>
      <description>You should try to keep access rights by using just group membership and default group permissions for the folder.&lt;BR /&gt;&lt;BR /&gt;If you cannot accomplish what you desire with this, then you must use ACLs. Check the setfacl/getfacl commands.</description>
      <pubDate>Thu, 16 Jul 2009 11:48:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461145#M37526</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-07-16T11:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461146#M37527</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;ACL is the way to go.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.suse.de/~agruen/acl/chapter/fs_acl-en.pdf" target="_blank"&gt;http://www.suse.de/~agruen/acl/chapter/fs_acl-en.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.vanemery.com/Linux/ACL/linux-acl.html" target="_blank"&gt;http://www.vanemery.com/Linux/ACL/linux-acl.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;I'm not a big fan of ACL, but this is how it should work.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 16 Jul 2009 12:33:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461146#M37527</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-07-16T12:33:06Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461147#M37528</link>
      <description>thank you ivan and steven.&lt;BR /&gt;i will check how ACLs work here in my case.&lt;BR /&gt;&lt;BR /&gt;you said "i am not a fan of ACLs"&lt;BR /&gt;is it because management becomes difficult with ACLs?&lt;BR /&gt;&lt;BR /&gt;if i get  you both right, you mean i sud use file and group permissions and only in cases where it doesnt fulfill my requirement, i sud use ACLs. am i right?</description>
      <pubDate>Thu, 16 Jul 2009 15:10:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461147#M37528</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-07-16T15:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461148#M37529</link>
      <description>&amp;gt;&amp;gt;&amp;gt; is it because management becomes difficult with ACLs?&lt;BR /&gt;&lt;BR /&gt;Yes, first of all, you cannot identify which permissions are in effect without checking with getfacl. You mus ensure that your backup tool supports ACLs saving and restoring. When you copy/move/restore a file, you mus ensure that ACLs are retained.&lt;BR /&gt;&lt;BR /&gt;Also, you must take special care with defaults ACLs for new files.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; if i get you both right, you mean i sud use file and group permissions and only in cases where it doesnt fulfill my requirement, i sud use ACLs. am i right?&lt;BR /&gt;&lt;BR /&gt;That is just my opinion and may be different for others.&lt;BR /&gt;&lt;BR /&gt;The question is, why IT, Finance and Sales should share the same folder with full control each one? I mean, it's logical for the finances folder to give full access to finance group, but sales group should not have full access.&lt;BR /&gt;&lt;BR /&gt;In that case, if you need a "shared" directory, create a new one, with a group "shared" as the owner, and users members of finance;shared or sales:shared.&lt;BR /&gt;&lt;BR /&gt;They will have their own folder (secure) and a shared folder.</description>
      <pubDate>Thu, 16 Jul 2009 19:52:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461148#M37529</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-07-16T19:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461149#M37530</link>
      <description>you need to reverse your logic and your problem is solved.&lt;BR /&gt;&lt;BR /&gt;create a new group, add all required users to this group, make this new group owner of the mentioned directory. problem solved.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;you could fiddle around with acl's as well (as mentioned in previous posts), but i prefer not to use those until really hard and specific right management comes into place (which is hardly the case).</description>
      <pubDate>Mon, 20 Jul 2009 12:09:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461149#M37530</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2009-07-20T12:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461150#M37531</link>
      <description>thank  you all :)</description>
      <pubDate>Mon, 20 Jul 2009 14:42:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461150#M37531</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-07-20T14:42:43Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461151#M37532</link>
      <description>i know this is an old thread which i am bumping. apologies if its against forum rules.&lt;BR /&gt;now, i have a client for whom i feel i will definitely need to use ACLs.&lt;BR /&gt;i am creating a RHEL file server with windows workstation users authenticating from windows AD. i have joined RHEL box with AD (samba+winbind) and mapping drives for users from windows logon scripts.&lt;BR /&gt;they have about 300-500 users forming different groups. &lt;BR /&gt;Among these groups they have users who will have r-x on certain folders. Certain users who will have rwx on the same set of folders.&lt;BR /&gt;the above i feel is not possible to achieve without ACLs. Correct me if i am wrong.&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; does linux have any good GUI to actually assign these ACLs for users?&lt;BR /&gt;The client doesnt have a linux person at his place. i can do the configuring all right with setfacl and check with getfacl, but the client finds it messy. &lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; any good backup software which supports backup and restore with ACLs??&lt;BR /&gt;&lt;BR /&gt;any comments welcome&lt;BR /&gt;thank you..</description>
      <pubDate>Wed, 19 Aug 2009 16:33:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461151#M37532</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-08-19T16:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461152#M37533</link>
      <description>i installed KDE where i could set ACLs on the fileserver using the GUI itself.&lt;BR /&gt;so that should solve the problem for the time being.&lt;BR /&gt;&lt;BR /&gt;Meanwhile i found a limitation, or more so i am not sure if thats the way ACLs work.&lt;BR /&gt;&lt;BR /&gt;i have a group gr1&lt;BR /&gt;i have users in the group u1,u2,u3&lt;BR /&gt;&lt;BR /&gt;Using ACLs, for a folder /shares/it I assign rwx to u1 &lt;BR /&gt;and --- to gr1.&lt;BR /&gt;it still allows u1 rwx access to the folder. my feeling is since gr1 has been restricted access to the folder the restrict access should take precedence over allow access to u1.&lt;BR /&gt;could someone please clarify?</description>
      <pubDate>Thu, 20 Aug 2009 09:06:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461152#M37533</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-08-20T09:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461153#M37534</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] precedence [...]&lt;BR /&gt;&lt;BR /&gt;ACL = Access Control _List_.  What is the&lt;BR /&gt;_order_ of the access control entries in the&lt;BR /&gt;list?  (Which one _precedes_ the other?)&lt;BR /&gt;&lt;BR /&gt;What happens if you change the order?&lt;BR /&gt;&lt;BR /&gt;As usual, showing actual commands with their&lt;BR /&gt;actual output can be more helpful than vague&lt;BR /&gt;descriptions.</description>
      <pubDate>Thu, 20 Aug 2009 09:54:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461153#M37534</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2009-08-20T09:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461154#M37535</link>
      <description>[root@fs ~]# getfacl /shares/it/&lt;BR /&gt;getfacl: Removing leading '/' from absolute path names&lt;BR /&gt;# file: shares/it&lt;BR /&gt;# owner: itadmin&lt;BR /&gt;# group: it&lt;BR /&gt;user::rwx&lt;BR /&gt;user:u1:rwx&lt;BR /&gt;user:u2:rwx&lt;BR /&gt;user:u3:rwx&lt;BR /&gt;user:u5:rwx&lt;BR /&gt;user:u6:rwx&lt;BR /&gt;group::r-x&lt;BR /&gt;group:gr1:---&lt;BR /&gt;mask::rwx&lt;BR /&gt;other::---&lt;BR /&gt;&lt;BR /&gt;i use setfacl and getfacl to set ACLs&lt;BR /&gt;here in the above case i have users u5 and u6 in the group gr1.&lt;BR /&gt;as gr1 has no privileges to the folder u5 and u6 also should not have any privileges.&lt;BR /&gt;but whn i log in as u5 or u6 i have full rights on the folder.&lt;BR /&gt;restrict privileges does not take precedence over the other privileges. :(</description>
      <pubDate>Thu, 20 Aug 2009 10:29:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461154#M37535</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-08-20T10:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461155#M37536</link>
      <description>In linux, normally the permissions are evaluated starting with user permissions, then no other permissions evaluated, then group permissions, the no permissions, and the other permissions. If you follow that rules for ACLs, then if it's granted to the user, the access will be allowed.</description>
      <pubDate>Thu, 20 Aug 2009 14:17:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461155#M37536</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2009-08-20T14:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461156#M37537</link>
      <description>ohhhhhhkkk...&lt;BR /&gt;thank you ivan ... thanks a lot</description>
      <pubDate>Thu, 20 Aug 2009 14:47:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461156#M37537</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-08-20T14:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: assign multiple groups to a folder :(</title>
      <link>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461157#M37538</link>
      <description>lastly, if the backup software doesnt support ACLs, is it advisable to take a backup of the ACLs in a file and backup that also.&lt;BR /&gt;so that if the linux file server crashes we can restore the files from the tape and with the ACL backup, restore the permissions?&lt;BR /&gt;&lt;BR /&gt;getfacl -R /shares/it &amp;gt;&amp;gt; file.txt&lt;BR /&gt;&lt;BR /&gt;and while restoring &lt;BR /&gt;setfacl --restore=file.txt</description>
      <pubDate>Fri, 21 Aug 2009 01:39:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/assign-multiple-groups-to-a-folder/m-p/4461157#M37538</guid>
      <dc:creator>iinfi1</dc:creator>
      <dc:date>2009-08-21T01:39:13Z</dc:date>
    </item>
  </channel>
</rss>

