Samba服务报错总结

回复 收藏

报错一: Server not using user level security and no password supplied.
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
可能的原因:
1、指定的共享路径path有误,path中不能有中文字符,因为有些版本对中文支持不够好。
2、指定的共享路径不存在,譬如:smb.conf中这样配置:
[global]
workgroup = MYGROUP
server string = Linux Samba Server TestServer
security = share
[tangfu]
path = /sysadm
writeable = yes
public = yes
正确的访问方法应该是:smbclient //samba服务器IP或127.0.0.1/tangfu,  如果这样访问:samclient
//127.0.0.1/tangfuu  将会出现以上错误。
报错二、 Server not using user level security and no password supplied.
Server requested LANMAN password (share-level security) but 'client
lanman auth' is disabled tree connect failed:
NT_STATUS_ACCESS_DENIED
可能的原因:
1、在global中配置了security=share,但是在共享片段中没有配置public = yes。例如:
[global]
workgroup = MYGROUP
security = share
[cs2c-tangfu]
path = /home/tangfu
writeable = yes
browseable = yes
此时无论输入密码还是不输入密码均会出现上面的错误。
2、在global中配置了security=share,但是在共享片段中配置了public = yes。例如:
[global]
workgroup = MYGROUP
security = share
[cs2c-tangfu]
path = /home/tangfu
writeable = yes
browseable = yes
public = yes
此时如果不输入密码可以正常访问,但是如果输入密码会出现以上错误。
简单的报错: tree connect failed: NT_STATUS_ACCESS_DENIED   
[root@station /]# vim /etc/samba/smb.conf   
[rhce]
comment = common
path = /common
public = no
browseable = yes
writable = no
read only = yes
hosts allow = 127. 192.168.0.    ----> hosts allow = 172. 192.168.0.  
[root@station /]# smbclient //172.24.30.5/rhce -U harry
Enter harry's password:
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.4-68.el6]
tree connect failed: NT_STATUS_ACCESS_DENIED       -----> means you do not have
proper permissions to perform whatever task/function you are attempting.
登录参数与配置参数不一致.
报错三、session setup failed: NT_STATUS_LOGON_FAILURE
可能的原因:
1、在global中配置了guest ok = yes或者public = yes(guest ok=yes和public = yes代表的意思差不多  ),
或者是在共享片段中配置  配置了guest ok = yes或者public = yes  。例如:
[global]
workgroup = MYGROUP
guest ok = yes
[cs2c-tangfu]
path = /home/tangfu
writeable = yes
browseable = yes
此时如果不输入密码可以正常访问,但是如果输入密码会出现以上错误。
报错四、tree connect failed:NET_STATUS_BAD_NETWORK_NAME
可能原因:
1、共享的目录没有相应的权限
2、登录的共享的目录名称写的不对.如
[root@station /]# smbclient //172.24.30.5/common -U harry
Enter harry's password:
Domain=[MYGROUP] OS=[Unix] Server=[Samba 3.5.4-68.el6]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
[rhce]
comment = common
path = /common
public = no
browseable = yes
writable = no
read only = yes
hosts allow = 127. 192.168.0.
应该为rhce,而不是common
[root@station /]# smbclient //172.24.30.5/rhce    -U harry
Enter harry's password:
报错五、NET_STATUS_NETWORK_ACCESS_DENIED
可能原因:
1.共享目录没有权限。

2016-04-04 08:30 举报
已邀请:

回复帖子,请先登录注册

退出全屏模式 全屏模式 回复
评分
可选评分理由: