Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Apr 2009 16:31:03 +0000 (GMT)
From:      Andy Hiscock <andyjhiscock@yahoo.com>
To:        freebsd-questions@freebsd.org
Subject:   Umask and Samba
Message-ID:  <268096.61940.qm@web26106.mail.ukl.yahoo.com>

next in thread | raw e-mail | index | archive | help

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.







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?268096.61940.qm>