tree connect failed: NT_STATUS_BAD_NETWORK_NAME
smb.conf 内容如下:
[global]
workgroup = workgroup
server string = Samba Server
; netbios name = zhx
interfaces = lo eth0 192.168.2.106/24
hosts allow = 127. 192.168.2.
# logs split per machine
log file = /var/log/samba/log.%m
# max 50KB per log file, then rotate
max log size = 50000
security = share
; encrypt passwords = yes
; smb passwd file = /etc/samba/smbpasswd
; passdb backend = tdbsam
[sharefile]
comment = sharefile
path = /sharefile
public = yes
writable = yes
目的是通过IP直接能匿名访问共享,登录方式
#smbclient //192.168.2.106/sharefile
提示:
Enter root's password:
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.5.4-68.el6]
Server not using user level security and no password supplied.
tree connect failed: NT_STATUS_BAD_NETWORK_NAME
selinux 已经关闭。
求各位大哥给看看是什么问题。在线等 。。。
匿名是不是被拦截了,安全限制
找不到共享的文件!创建一下共享文件,微调selinux!
chcon -t samba_share_t /共享文件名
setsebool -P samba_export_all_ro on 赋予共享权限ro
今天上了一天的课,刚回来看大家回复。我回来又测试了下,在别的目录下创建一个共享文件夹,就可以进去。我的sharefile创建在root目录下不行,不知道为什么。谢谢楼上两位大哥。