smbclient目录列表给出了NT_STATUS_ACCESS_DENIED

我一直在四处张望,无济于事。 RHEL 6.4

我可以从远程服务器运行以下命令,并成功通过LDAP进行身份validation:

smbclient -L //tric4t/share -U username 

一旦我运行smbclient //tric4t/share -U username ,那么

 smb: \> ls NT_STATUS_ACCESS_DENIED listing \* 

我有以下的日志错误:

 [root@tric4t samba]# tail -4 log.smbd smbd version 3.6.9-167.el6_5 started. Copyright Andrew Tridgell and the Samba Team 1992-2011 [2014/03/04 09:24:10.470639, 0] lib/util_sock.c:628(open_socket_in) open_socket_in(): setsockopt: SO_REUSEPORT = true on port 445 failed with error = Protocol not available root@tric4t samba]# tail -4 log.nmbd [2014/03/04 09:24:16, 0] lib/util_sock.c:628(open_socket_in) open_socket_in(): setsockopt: SO_REUSEPORT = true on port 137 failed with error = Protocol not available 

任何援助将不胜感激!

我解决了selinux引起的这个问题。 NMB报告协议在端口137上不可用。SMB在端口139上报告相同。我在/ etc / selinux / config上打开Selinux,Samba开始正常工作。 BTW这selinux是一个很好的工具,为人们的耐心考试;-)

更改共享目录的SELinux安全上下文帮助了我

 chcon -t samba_share_t /path/to/share