On Wed, 10 Oct 2001, Harnish, Joe wrote:

> Hello everyone.
> 
> I am very sorry if this is off topic.
> 
> Is there a way to set up directories where a user saves a file it will get a
> specific group id?  
> 
> 
> Like a user is in groups:  groupA, groupB, groupC
> 
> When this user saves a file to /usr/local/directoryA the file will have
> group ownership of groupA.
> When this user saves another file in /home/directoryB the file will have
> ownership of groupB, etc.

# chmod g+s /usr/local/directoryA ; chgrp groupA /usr/local/directoryA
# chmod g+s /usr/local/directoryB ; chgrp groupB /usr/local/directoryB

That should do it. You also have to make sure everybody has permission to 
write to directoryA and directoryB though.

-- 
Chris Kloiber, RHCE
Enterprise Support - Red Hat, Inc.

[root@earth root]# rm -rf /bin/laden



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to