请教大家:SMABA访问出错,配置如下,谢谢
我的问题是在/etc/samba/smb。conf里面的path=/var/ftp/pub
可是在windows客户机通过网上邻居访问时只有打印机共享,请问是什么原因呢?
[网络环境]
windows的ip是192.168.1.2 linux的ip是192.168.1.110
可以ping 通。smb服务已经启动
[root@test samba]# ps -aux | grep smb
root 5216 0.0 1.0 11176 2676 ? S 21:31 0:00 smbd -D
root 5226 0.0 0.2 4916 672 pts/1 S 21:34 0:00 grep smb
[root@test samba]#
我的配置如下:
# Global parameters
[global]
server string = test
username map = /etc/samba/smbusers
log file = /var/log/samba/%m.log
max log size = 50
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
dns proxy = No
read only = No
hosts allow = 192.168.1.2, 127.
browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
[pub]
comment = this is my samba server
path = /var/ftp/pub
create mask = 0664
directory mask = 0777
有几个诊断信息:
[root@test samba]# service smb restart
关闭 SMB 服务: [ 确定 ]
关闭 NMB 服务: [ 确定 ]
启动 SMB 服务: [ 确定 ]
启动 NMB 服务: [ 确定 ]
[root@test samba]# /usr/bin/smbclient -L SMBserver
Connection to SMBserver failed
[root@test samba]#
[root@test samba]# /usr/bin/nmblookup SMBserver
querying SMBserver on 192.168.1.255
name_query failed to find name SMBserver
[root@test samba]# /usr/bin/nmblookup test
querying test on 192.168.1.255
192.168.1.110 test<00>
192.168.1.110 test<00>
[root@test samba]#
再次感谢各位指教。