问题原文
原帖链接 · nullReference · CC BY-SA 3.0
I have defined the following share in smb.conf
[development_server]
comment = Development directories
path = /sites
writeable = yes
valid users = @dev
guest ok = no
directory mask = 0775
create mask = 0775
The problem is that whenever I create a file within windows the permissions of that file are set as 764 instead of being set as 755. Directories however are set correctly with 775. I am confused. I tried setting the following:
[global]
unix extensions = yes
But this did not help either.
已采纳解答
原帖链接 · nullReference · CC BY-SA 3.0
The problem turned out to be the security mode settings within my configuration (or lack there of). The following smb.conf configuration is now working for me and all users within my security group "dev" now have 775 for all files they create within the share:
[development_server]
comment = Development directories
path = /sites
writeable = yes
valid users = @dev
guest ok = no
create mask = 0775
force create mode = 0775
security mask = 0775
force security mode = 0775
directory mask = 0775
force directory mode = 0775
directory security mask = 0775
force directory security mode = 0775
I found this solution while digging through askubuntu
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
