[Samba] Samba 3.6.15 Not honouring create mode

Taylor, Jonn jonnt at taylortelephone.com
Thu Sep 26 11:08:39 MDT 2013


Using samba 3 as cluster share for many years now and we now need to for 
the create mode on files. This seems to not be working in3.6.15.

Here is my config

[global]
     workgroup = TAYLORTELEPHONE
     realm = TAYLORTELEPHONE.COM
     netbios name = SHR01
     server string = Cluster Share
     interfaces = eth0, eth1, lo
     security = ADS
     private dir = /clusterdata/ctdb
     log file = /var/log/samba/log.%m
     server signing = auto
     lpq cache time = 20
     clustering = Yes
     printcap name = /etc/printcap
     wins server = 192.168.173.16
     template homedir = /home/%U
     template shell = /bin/bash
     winbind enum users = Yes
     winbind enum groups = Yes
     winbind use default domain = Yes
     winbind refresh tickets = Yes
     winbind offline logon = Yes
     idmap config * : range = 500-4000000
     idmap config TAYLORTELEPHONE:range = 500-4000000
     idmap config TAYLORTELEPHONE:backend = rid
     idmap config * : backend = tdb2
     admin users = "@TAYLORTELEPHONE\Domain Admins"
     inherit acls = Yes
     map acl inherit = Yes
     max print jobs = 100
     printing = bsd
     print command = lpr -r -P'%p' %s
     lpq command = lpq -P'%p'
     lprm command = lprm -P'%p' %j

[share]
     comment = Share Data
     path = /clustershare/share
     force user = root
     force group = Domain Admins
     read only = No
     force create mode = 660
     force directory mode = 770
     vfs objects = recycle
     recycle:directory_mode = 770
     recycle:versions = yes
     recycle:keeptree = yes
     recycle:noversions = *.doc|*.xls|*.ppt
     recycle:excludedir = /tmp|/temp|/cache
     recycle:exclude = *.tmp|*.temp|*.o|*.obj|~$*|*.~??|~*.tmp
     recycle:repository = .recycle


After a file or directory is created this is what I get.

drwxrwx--- 28 root domain admins      2048 Sep 26 11:57 .
drwxr-xr-x  8 root root               3864 May  7 21:00 ..
drwxrwxr-x  2 root domain admins      3864 Sep 26 11:57 test
-rwxrw-r--  1 root domain admins         0 Sep 26 12:03 test.txt

Jonn



More information about the samba mailing list