Umask and Samba

Karl Vogel vogelke+unix at pobox.com
Wed Apr 15 00:09:23 UTC 2009


>> On Tue, 14 Apr 2009 16:31:03 +0000 (GMT), 
>> Andy Hiscock <andyjhiscock at yahoo.com> said:

A> Ideally I would like to "create mask" to be set to generate -rw-rw----.
A> Is there a way of working what the value should be?

   I use this in smb.conf, which allows user/group write and world read:
     force create mode = 0660
     force directory mode = 0775

   You might be able to turn world permissions off by using:
     create mask = 0740
   or
     security mask = 0770

-- 
Karl Vogel                      I don't speak for the USAF or my company
Drawing on my fine command of language, I said nothing.


More information about the freebsd-questions mailing list