设置创建新文件的 samba 权限

设置创建新文件的 samba 权限

我有一个 centos 共享文件夹,与这些特定的共享

[share]
    path = /mnt/share
    force user = winuser
    force group = winuser
    guest only = yes
    browsable = yes
    guest ok = yes
    writable = yes
    read only = no
    create mask = 0777
    force create mask = 0777
    directory mask = 0777
    force directory mode = 0777

当 samba 客户端(windows)使用 'winuser' 帐户创建文件或目录时,权限变为

-rw-rw---- 1 winuser winuser

为什么 samba 没有设置正确的权限?我有什么错吗?

答案1

尝试为您的组添加掩码winuser(用户 winuser 的组):

winuser mask = 0777
force winuser mode = 0777    
directory winuser mask = 0777
force directory winuser mode = 0777

相关内容