LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Ownership on new files in group samba share set badly (https://www.linuxquestions.org/questions/linux-server-73/ownership-on-new-files-in-group-samba-share-set-badly-898489/)

pentalive 08-20-2011 01:00 PM

Ownership on new files in group samba share set badly
 
I have a samba share for the group "Founders", when a person in the founders group creates a file it is given the ownership of USERNAME:USERGROUP my own would be created as pentalive:pentalive.. I need them to be created as pentalive:founders (i am a member of group founders)

How can this be accomplished?

The segment from my smb.conf

[founders]
comment = Founders Only
path = /samba/founders
browsable = no
available = yes
writeable = yes
guest ok = no
valid users = +founders

founders is just one of many groups I and the other founders are in.

xeleema 08-26-2011 03:03 AM

Greetingz!

To cause all files henceforth created in /samba/founders to be owned by the "founders" group, do the following.
Code:

chgrp founders /samba/founders && chmod g+s /samba/founders


All times are GMT -5. The time now is 09:16 PM.