[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.-.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.-.el6_8]
Server not using user level security and no password supplied.
smb: \> ls
. D Sun Nov ::
.. DR Mon Nov ::
DB-BAK D Sun Oct ::
My Music D Mon Oct ::
sx上线记录 D Wed Oct ::
My Video D Fri Sep ::
Software D Sat Nov ::
hx-it-doc D Wed Nov ::
IPTABLES D Thu Nov ::
text.zip A Thu Nov ::
Book D Wed Nov ::
RPM D Fri Sep ::
xs服务器整理 D Fri Oct ::
diandian-BG D Fri Oct ::
Pictures D Mon Oct ::
vhost D Mon Nov ::
app D Sat Nov ::
lnmp.sh A Sat Nov ::
ISO D Sun Nov ::
My Pictures D Tue Nov ::
image D Thu Nov ::
lost+found D Sun Sep ::
DOCUMENT-XINXIAN D Mon Nov :: blocks of size . blocks available
smb: \>