samba 共享无法访问/您没有权限

samba 共享无法访问/您没有权限

我已经设置了一个 samba 共享文件夹,但是,当我尝试访问该共享时,我收到“ Windows Can not access the \\server\share1. You don't have permissions to access \\server\share1

该服务器已加入 AD,我可以使用smbclientAD 用户凭据列出共享。我不知道我错过了什么。奇怪的是,Share1 甚至不提示输入不同的凭据,而是弹出访问被拒绝的消息。

[root@samba]# smbclient -L samba -U username
Enter user's password:
Domain=[EXAMPLE] OS=[Unix] Server=[Samba 3.6.23-35.el6_8]

        Sharename       Type      Comment
        ---------       ----      -------
        share1          Disk      Test Share

这是 smb.conf:

        workgroup = EXAMPLEDOMAIN
        ;password server = ad-cxxac.example.com
        realm = EXAMPLE.COM
        security = ads
        ;idmap uid = 10000-20000
        ;idmap gid = 10000-20000
        template shell = /bin/sh
        winbind use default domain = true
        winbind offline logon = true
        winbind refresh tickets = yes
        log file = /var/log/samba/samba.log
        debug level = 3
        netbios name = samba
        encrypt passwords = yes
        winbind enum groups = no
        winbind enum users = no
        debuglevel = 3

#============================ Share Definitions ==============================
[share1]
        comment = Test Share
        path = /share1
        valid users =  EXAMPLE\username
        force group = "Domain Users"
        writable = yes
        read only = no
        force create mode = 0660
        create mask = 0777
        directory mask = 0777
        force directory mode = 0777

加入域也可以

[root@samba]# net ads testjoin
Join is OK

共享文件夹的目录权限是

drwxrwxrwx.    2 root   domain users  4096 Sep  share1

相关内容