[KLUG Members] samba directory settings

Adam Tauno Williams adam at morrison-ind.com
Wed Dec 1 12:50:07 EST 2004


> If I wanted a directory on a Samba server that everybody with an account
> could read and write to, and they could each read and write to a
> subdirectory that any one of them created, I figured I would set it in
> smb.conf to 
>    writeable = yes
>    create mask = 0776
> But, I'm not sure exactly how the create mask is operating on the
> directory and subdirectories.  Can anybody shed some light on this?

I prefer using force create mode

force create mode = 0666
force directory mode = 0777

thus all created files will be rw-rw-rw- and all created directories will be
rwxrwxrwx.  That should provide access to everything for all authenticated
users.  

You can also

force group = users

for instnance to make the group owner ship of all created files to be the group
users rather that the users actuall primary group (assuming these are
different).


More information about the Members mailing list