在2K下访问SAAMBA出错

由 leephoneonly 在 08-15-2004 12:03 发表:

在2K下访问SAAMBA出错

RH9 安装自带RPM包

在smb.conf 中添加如下内容

[Resource]

comment= Local Resource

path = /home/hlf

public = yes

writable = yes

重启SABMA,在2K下打开网上邻居,打开工作组可以看到Locahost 主机,打开出现提示: 无法访问//localhost 在网络上已有重复的名称~!

小弟菜,这是什么原因?


爱你所爱~!


由 leephoneonly 在 08-15-2004 12:06 发表:


在2K下PING

C:\Documents and Settings\hlf>ping localhost

Pinging hulifeng [127.0.0.1] with 32 bytes of data:

Reply from 127.0.0.1: bytes=32 time<10ms TTL=128

Reply from 127.0.0.1: bytes=32 time<10ms TTL=128

Reply from 127.0.0.1: bytes=32 time<10ms TTL=128

Reply from 127.0.0.1: bytes=32 time<10ms TTL=128

Ping statistics for 127.0.0.1:

Packets: Sent = 4, Received = 4, Lost = 0 (0% l

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 0ms, Average = 0ms

我设置的LINUXIP是 192.168.1.254 应该是这个原因所以才出现重名。

那应该怎么改?具体是哪个文件~!


爱你所爱~!


由 leephoneonly 在 08-15-2004 13:00 发表:


我把主机名改了,但在网上邻居里打开时显示找不到网络路径。这是怎么回事~!


爱你所爱~!


由 mauhan 在 08-15-2004 14:51 发表:


不要把samba server 的hostname设为localhost,在smb.conf中把workgroup设置成为你公司的工作组或是域名。

小弟的建议如下:

hostname mysamba

修改/etc/samba/smb.conf

workgroup=(要加入的组名)

security=share

然后/etc/rc.d/init.d/smb reload

windows下输入路径 \\mysamba\resource


由 leephoneonly 在 08-15-2004 20:14 发表:


MAUHAN 我在smb.conf中找不到hostname 字段

我按你的方法试过了,还是提示找不到网络路径 ,会不会是别的什么地方错了。在主机名在命令下怎么改? /etc/hosts这个文件里是不是需要设置过的。 唉,怎么会这样呢。


爱你所爱~!


由 leephoneonly 在 08-15-2004 20:22 发表:


我知道错在哪里了,我在WIN2K下PING localhost 可以PING通,但我在网上邻居里看到的LINUX主机名是mylinux 工作组我设的是mygroup

,在WIN2K下PING MYLINUX却提示不能解析,问题就出在这儿,怎么样让WIN2K能解析? 我hosts文件已添加了 127.0.0.1 mylinux.localdomain mylinux 我在LINUX下ping mylinux可以PING通,请大家帮忙,谢谢了先。


爱你所爱~!

Published At
Categories with 服务器类
comments powered by Disqus