我在smb.conf中定义了以下共享
[development_server] comment = Development directories path = /sites writeable = yes valid users = @dev guest ok = no directory mask = 0775 create mask = 0775
问题是,每当我在Windows中创建文件时,该文件的权限设置为764而不是设置为755.但是目录设置正确775.我很困惑.我尝试设置以下内容:
[global] unix extensions = yes
但这也没有帮助.
解决方法
问题结果是我的配置中的安全模式设置(或缺少).以下smb.conf配置现在正在为我工作,我的安全组“dev”中的所有用户现在对于他们在共享中创建的所有文件都有775:
[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