奇怪的行为 smb.conf 创建掩码

奇怪的行为 smb.conf 创建掩码

我已经设置了 Samba 共享以连接 Windows 11。我尝试将默认权限更改为 -RW-RW----,create mask = 0660 但我得到的是 -RW-R-----。当我尝试时,create mask = 0460我得到了 -R--RW----,这是预期的。当用户具有写权限时,似乎我无法授予组写权限。umask = 0022 但当我更改它时,它不会影响任何东西。

/data1 是 zfs 池。这会改变行为吗?

版本:版本 4.15.13-Ubuntu

/etc/samba/smb.conf

[global]
   workgroup = WORKGROUP
   server string = %h server (Samba, Ubuntu)
   log file = /var/log/samba/log.%m
   max log size = 1000
   logging = file
   panic action = /usr/share/samba/panic-action %d
   server role = standalone server
   obey pam restrictions = yes
   unix password sync = yes
   passwd program = /usr/bin/passwd %u
   passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
   pam password change = yes
   map to guest = bad user

[data1]
   comment = Shared Directory
   path = /data1
   valid users = @admin
   browseable = yes
   read only = no
   guest ok = no
   writable = yes
   create mask = 0660

相关内容