Hi All, How do you give more than one group access to an dir in linux and give the groups different access rights? Thanks Regards _____________________________________________________________________ For super low premiums, click here http://www.dialdirect.co.za/quote
On Thursday 21 April 2005 11:06 am, it clown wrote:
How do you give more than one group access to an dir in linux and give the groups different access rights? You can't do that through the standard group setup.
But, you can use ACLs. These are much more sophisticated than the simple
owner/group/everyone permission scheme.
--
Jerry Feldman
On Thu, 2005-04-21 at 17:06 +0200, it clown wrote:
Hi All,
How do you give more than one group access to an dir in linux and give the groups different access rights?
Through the use of ACL's. Look at getfacl and setfacl for more info. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge
On Thursday 21 April 2005 11:24 am, Ken Schneider wrote:
On Thu, 2005-04-21 at 17:06 +0200, it clown wrote:
Hi All,
How do you give more than one group access to an dir in linux and give the groups different access rights?
Through the use of ACL's. Look at getfacl and setfacl for more info.
If you need to use Samba and/or NFS ACL's may not work for you. You can still do what you want ... sort of. You would need an extra directory, group, and a umask of 002 though (be careful about changing umask without thinking about the consequences). drwxr-s--- 8 root accounting AccountDir1 drwxrwsr-x 8 root accmanager AccountDir2 In the above example, all members of the accounting group can enter both directories. Only members of the accmanager group (who must also be in the accounting group) can write to the subdirectory. If the first directory is shared via Samba, use the "inherit permissions = yes" option to get the same effect for the 'bloze users. Very close result compared to the original request and it can be used through Samba, NFS and localy. -- Louis Richards
it clown wrote:
Hi All,
How do you give more than one group access to an dir in linux and give the groups different access rights?
As I understand it, with standard Unix/Linux permissions, only one group "owns" a directory. Perhaps ACLs will do what you need.
Thanks,
do you use acl's in a ldap environment?
On Thu, 21 Apr 2005 21:05:56 -0400
James Knott
it clown wrote:
Hi All,
How do you give more than one group access to an dir in linux and give the groups different access rights?
As I understand it, with standard Unix/Linux permissions, only one group "owns" a directory. Perhaps ACLs will do what you need.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
_____________________________________________________________________ For super low premiums, click here http://www.dialdirect.co.za/quote
participants (5)
-
it clown
-
James Knott
-
Jerry Feldman
-
Ken Schneider
-
Louis Richards