On Tue, 2003-02-11 at 08:12, Jianping Zhu wrote:
> I have redhat 7.1
> 
> I have folder f1 f2 f3
> i have User u1 u2 u3 u4
> u1 u2 u3 can r/write to f1  (I set all file in this folder belong to g1)
> u2 u3 u4 can r/write to f2  (g2)
> u1 u3 u2 can r/w to f3      (g3)
> 
> Is the are way, for example when u put a file in f1, the file will belong
> to
> grp g1. and when he put a file in f3, the file will belong to g3?
> 
> Thanks 
> 

Yes set the sgid bit on the directory.  chmod g+s d1  
all files subsequently created in d1 will have the same group owner.

Bret 



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to