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