I can't seem to figure out what I'm missing. Running V8.0.2 with CIFS enabled. Initially, I had both the file and directory masks set to 0774 (see below). I can confirm the directory mask works correctly but I noticed the file mask wasn't working.
When creating a file in a test directory, I get the following results with a 0770 file mask:
-rw-rw-r-- (664) [Windows XP client / user: mike]
-rw-r--r-- (644) [Slackware 13.1 using mount.cif / user: mike]
-rw-r--r-- (644) [FreeNAS console / user: root]
I also produced the same exact results above after removing the file mask in the CIFS services section. Per the documentation, I believe I should have gotten a 666 file mask which is default with no mask.
I know I have inherited permissions on so I checked my rights above the directory and nothing looks out of place. I have no ACLs setup or showing when the files are created.
I can verify the clients and FreeNAS server have both been rebooted per the solution in this thread.
Here is my smb.conf
Any ideas or points in a different direction would be appreciated. Thanks.
When creating a file in a test directory, I get the following results with a 0770 file mask:
-rw-rw-r-- (664) [Windows XP client / user: mike]
-rw-r--r-- (644) [Slackware 13.1 using mount.cif / user: mike]
-rw-r--r-- (644) [FreeNAS console / user: root]
I also produced the same exact results above after removing the file mask in the CIFS services section. Per the documentation, I believe I should have gotten a 666 file mask which is default with no mask.
I know I have inherited permissions on so I checked my rights above the directory and nothing looks out of place. I have no ACLs setup or showing when the files are created.
I can verify the clients and FreeNAS server have both been rebooted per the solution in this thread.
Here is my smb.conf
Code:
global]
encrypt passwords = yes
dns proxy = no
strict locking = no
read raw = yes
write raw = yes
oplocks = yes
max xmit = 65535
deadtime = 15
display charset = LOCALE
max log size = 10
syslog only = yes
syslog = yes
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
smb passwd file = /var/etc/private/smbpasswd
private dir = /var/etc/private
getwd cache = yes
guest account = nobody
map to guest = Bad Password
netbios name = hkd-nas
workgroup = HKD-LAND
server string = HKD-NAS Server
use sendfile = yes
large readwrite = no
store dos attributes = yes
security = user
create mask = 0774
create mask = 0774
directory mask = 0774
client ntlmv2 auth = yes
dos charset = CP437
unix charset = UTF-8
log level = 1
aio read size = 1
aio write size = 1
[documents]
path = /mnt/storage/documents
printable = no
veto files = /.snap/.windows/
writeable = no
browseable = yes
inherit owner = no
inherit permissions = yes
vfs objects = zfsacl
hide dot files = no
inherit acls = Yes
map archive = No
map readonly = no
nfs4:mode = special
nfs4:acedup = merge
nfs4:chown = yes
write list = mike, dawn
Any ideas or points in a different direction would be appreciated. Thanks.