NT_STATUS_ACCESS_DENIED 列表 \* - Samba 服务器

NT_STATUS_ACCESS_DENIED 列表 \* - Samba 服务器

我正在尝试设置 CentOS 7 samba 服务器,但我无法使某些权限起作用。

我的所有文件和目录只允许其各自的所有者访问,例如:

drwxrwx---.  5 root setcob        4.0K Feb 12  2016 setcob
drwxrwx---+  7 root setorpessoal  4.0K Oct 25 19:30 setorpessoal

但是当我通过 smbclient 连接时,我无法ls里面塞托佩索尔

smb.conf:

[global]
        workgroup = workgroup
        netbios name = sambaserver
        netbios aliases = sambaserver
        server string = sambaserver
        map to guest = Bad User
        passdb backend = smbpasswd
        log level = 4
        log file = /var/log/samba/%U.log
        max log size = 1000
        max xmit = 65535
        deadtime = 15
        socket options = TCP_NODELAY IPTOS_LOWDELAY
        os level = 100
        preferred master = Yes
        domain master = Yes
        dns proxy = No
        wins support = Yes
        full_audit:prefix = %u|%i|%S
        recycle:keeptree = yes
        recycle:versions = yes
        recycle:repository = /mnt/samba/lixeira
        recycle:exclude = *.tmp, *.log, *.obj, ~*.*, *.bak, *.iso
        recycle:exclude_dir = tmp, cache
        invalid users = root
        admin users = user1, user2, user3
        write list = user1, user2, user3
        veto files = /~*/
        hide files = /~*/
        vfs objects = recycle

[setorpessoal]
        comment = Setor Pessoal
        path = /mnt/samba/setorpessoal
        valid users = @setorpessoal, setorpessoal, user1, user2, user3
        read only = No
        force create mode = 0777
        force directory mode = 0777
        write cache size = 384000
        veto files = /*.mp3/*.wav/*.tif/*.pif/
        recycle:keeptree = yes
        recycle:versions = yes
        recycle:repository = lixeira
        recycle:exclude = *.tmp, *.log, *.obj, ~*.*, *.bak, *.iso
        recycle:exclude_dir = tmp

日志错误:

[2018/10/26 17:41:52.458256,  3] ../source3/smbd/service.c:120(set_current_service)
  chdir (/mnt/samba_novo/samba/setorpessoal) failed, reason: Permission denied
[2018/10/26 17:41:52.458296,  3] ../source3/smbd/smb2_server.c:3120(smbd_smb2_request_error_ex)
  smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_ACCESS_DENIED] || at ../source3/smbd/smb2_server.c:2472

我正在使用带有 Samba 4.7.1 的 CentOS 7。

答案1

好的,我找到了问题所在:我没有为其根目录设置新的权限。所有文件夹都正常,但是/mnt/mnt/桑巴曾经属于。我已设置为 777。顺便说一句,我还禁用了 SElinux。

相关内容