QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1433|回复: 0

请教大家:SMABA访问出错,配置如下,谢谢

[复制链接]
发表于 2006-12-17 22:16:15 | 显示全部楼层 |阅读模式
我的问题是在/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]#

再次感谢各位指教。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-4-28 07:16 , Processed in 0.140836 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表