Umask and Samba

Andy Hiscock andyjhiscock at yahoo.com
Tue Apr 14 16:57:47 UTC 2009


Hi there.

Having problems with create mask in samba since changing my umask in /etc/login.conf to 007.

I have created a share folder in /usr/homes with mod 770.  Accessing and writing/creating files/directories via ftp is as expected (-rw-rw----) but when copying a file via samba I get a real mix of permissions, after many hours of playing with the create mask value in smb.conf I get typically:

-rw-r--r--
-rw-r-rw--
etc

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

Find below a copy of my share section of smb.conf;

[share]
path=/usr/home/share
read only=no
guest ok=no
create mask=0330

Thanks in advance.



      


More information about the freebsd-questions mailing list