[root@GitLab data_nfs]# smbclient //localhost/public WARNING: The security=share option is deprecated Enter root's password: Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.23-36.el6_8] Server not using user level security and no password supplied. smb: > ls NT_STATUS_ACCESS_DENIED listing * #原因是被selinux阻止 [root@GitLab data_nfs]# getenforce Enforcing
关闭selinux
[root@GitLab ~]# getenforce
Disabled
[root@GitLab ~]# !smbclie smbclient //localhost/public WARNING: The security=share option is deprecated Enter root's password: Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.6.23-36.el6_8] Server not using user level security and no password supplied. smb: > ls . D 0 Sun Nov 20 23:44:42 2016 .. DR 0 Mon Nov 21 13:13:48 2016 DB-BAK D 0 Sun Oct 23 12:32:18 2016 My Music D 0 Mon Oct 31 23:20:46 2016 sx上线记录 D 0 Wed Oct 19 15:34:23 2016 My Video D 0 Fri Sep 30 08:59:17 2016 Software D 0 Sat Nov 19 19:24:10 2016 hx-it-doc D 0 Wed Nov 16 19:03:10 2016 IPTABLES D 0 Thu Nov 17 23:02:42 2016 text.zip A 13569 Thu Nov 17 17:10:25 2016 Book D 0 Wed Nov 16 11:32:40 2016 RPM D 0 Fri Sep 30 00:03:47 2016 xs服务器整理 D 0 Fri Oct 14 21:14:20 2016 diandian-BG D 0 Fri Oct 14 15:30:10 2016 Pictures D 0 Mon Oct 24 23:41:36 2016 vhost D 0 Mon Nov 21 14:58:47 2016 app D 0 Sat Nov 12 22:43:56 2016 lnmp.sh A 7943 Sat Nov 5 22:41:44 2016 ISO D 0 Sun Nov 20 22:01:01 2016 My Pictures D 0 Tue Nov 15 12:29:49 2016 image D 0 Thu Nov 17 19:03:05 2016 lost+found D 0 Sun Sep 25 22:52:39 2016 DOCUMENT-XINXIAN D 0 Mon Nov 14 14:52:39 2016 58665 blocks of size 8388608. 37915 blocks available smb: >