samba write permissions

Red Squirrel

No Lifer
May 24, 2003
71,322
14,088
126
www.anyf.ca
How can I make it so anything written to a certain shard is chmodded a specific way like 770 or 775 etc.

i tried these, no luck:

create mask = 0770
directory mask = 0770
create mode = 0770
directory mode = 0770

Also tried without the leading 0. None of these do what I want.
 

Brazen

Diamond Member
Jul 14, 2000
4,259
0
0
You're close. Use this instead:

create mask = 0770
directory mask = 0770
force create mode = 0770
force directory mode = 0770

You should really use 0660 for files though, and 0770 for directories only.