smb.conf配置文件如下
[public2]
path = /data/public
public = yes
writable = yes
browseable = yes
create mask = 0777
[public] path = /public
public = yes
writable = yes
browseable = yes
create mask = 0777
|
public可以正常访问,但是public2 总是报错
[root@ns1 ~]# smbclient //192.168.0.24/data/public -U admin
Password:
Domain=[NS1] OS=[Unix] Server=[Samba 3.0.23c-2]tree connect failed: NT_STATUS_BAD_NETWORK_NAME
同样的配置文件一个可以访问,一个却无法访问,唯一的区别是:
/public
/data/public
其中/data是后来挂载的分区
处理办法:
#vi /etc/selinux/config
SELINUX=disabled
#reboot
[root@ns1 selinux]# smbclient //192.168.0.24/data/public -U admin
Password:
Domain=[NS1] OS=[Unix] Server=[Samba 3.0.23c-2]
smb: \>
阅读(3208) | 评论(0) | 转发(0) |