On Thu, 25 Sep 2003 11:30:58 -0400
"Reuben D. Budiardja" <[EMAIL PROTECTED]> wrote:

> 
> Hello,
> I have the following problem which I hope someone can help. Suppose I
> have 
> users: a,b,c,d,...,z.
> 
> User  a,b,c,d,e,f,g is member of group "cooluser"
> 
> The other users are member of the default group (which in RH is the
> group with 
> the same name of the username).
> 
> I want user d,e,f,g,h,i,j,k,l  only to be able to share stuff in a
> directory, 
> so I create a new group: sausage (using "groupadd" command), and put
> those 
> user as a member of the group sausage. 
> 
> I created directory /home/sausage and change the owner to root.sausage
> with 
> complete access to the group
> 
> $> chown -R root.sausage /home/sausage
> $> chmod -R 775 /home/sausage
> 
> Now, the problem is, if user d put a file in the /home/sausage, the
> ownership 
> of the file is d.cooluser instead of d.sausage, 
> 
> [EMAIL PROTECTED] sausage]# ls -lah
> total 16k
> drwxrwxr-x    2 root     sausage     4.0k Sep 25 11:01 .
> drwxr-xr-x   46 root     root         4.0k Sep 25 10:59 ..
> -rw-r--r--    1   d   cooluser        6.6k Sep 25 11:01 KlugGlosT.DOC
> 
> 
> thus the other member of sausage which are not member of cooluser can't
> write 
> to the file. What do I need to do so that the default ownership and 
> permission in the directory sausage is root.sausage and rwx for the
> group?
> 
> Thanks in advance for any help
> RDB
> -- 
Reuben,

You need to tell Linux that all files created in that directory should be
created with the Directory group instead of the users group:

chmod g+s /home/sausage

Sean





-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to