Samba,ACL's and create mask
Posted on 2012-03-12
I'm using samba -3.6.1 on Red Hat Enterprise Linux ES release 4 (Nahant Update 8) ,all seems ok. The issue im facing is as follows.
When ever a user creates a file via windows explorer the permissions assgined to the file are as follows
-rw-rwxr--+ 1 tom group2 0 Mar 9 10:02 testfile
drwxrwsr-x+ 2 bob group1 4096 Mar 9 10:38 testdir
Im ok with the directory permissions but would like the file permissions to be 644, following are my smb.conf ( create mask ) details
create mask = 0644
force create mode = 0644
security mask = 0664
force security mode = 0664
directory mask = 2775
force directory mode = 2775
directory security mask = 2775
force directory security mode = 2775
Also I have Linux ACL's on the shares for as the requirement called for some complexity.
so that only a few users in a group have access to the share.Could you experts help me with suitable mask that i need to use in smb,conf and a little explanation would be appreciated.
Thanks in advance