全部博文(150)
分类: LINUX
2009-12-02 14:15:52
一. 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
uu 将会出现以上错误。
二、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
此时如果不输入密码 可以正常访问,但是如果输入密码会出现以上错误。
三、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、共享的目录没有相应的权限
五、NET_STATUS_NETWORK_ACCESS_DENIED
可能原因:
1.共享目录没有权限。