LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1415|回复: 9

【求助】samba服务器在xp下无法访问!

[复制链接]
发表于 2005-8-11 11:01:23 | 显示全部楼层 |阅读模式
在FC4配置samba完成,在XP的网络邻居中能看到,但是无法访问,有如下提示!
其中共享目录权限已经更改为 777 ,iptables服务也已经关闭了.

这是我的配置文件
[global]
# server string is the equivalent of the NT Description field
        server string = King's Samba Server
;   hosts allow = 192.168.1. 192.168.2. 127.
# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
;  guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
        log file = /var/log/samba/%m.log
# all log information in one file
#   log file = /var/log/samba/log.smbd

# Put a capping on the size of the log files (in Kb).
        max log size = 50
# Security mode. Most people will want user level security. See
# security_level.txt for details.
;       security = share

[temp]
        comment = 临时文件
        path = /home/king/temp
        public = yes
        only guest =yes
        writeable = yes
        browseable = yes
        guest ok = yes

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
发表于 2005-8-11 11:21:58 | 显示全部楼层
# Security mode. Most people will want user level security. See
# security_level.txt for details.
;       security = share   <-- uncomment this line and try again with "#service smb restart".

[temp]
        comment = 临时文件
        path = /home/king/temp
        public = yes
        only guest =yes
        writeable = yes
        browseable = yes
        guest ok = yes
___________________________________________________

After then turn off your windows XP's firewall and try connect again.
or using command prompt: net use Z: \\Your_Linux_IP\temp

If still can't, check your /home/king folder permission.  This should be changed to 755 so that other can access to this folder.
回复 支持 反对

使用道具 举报

发表于 2005-8-22 18:44:38 | 显示全部楼层
在你的temp 加进这个security=share
回复 支持 反对

使用道具 举报

发表于 2005-9-4 16:21:05 | 显示全部楼层
关掉你的linux防火墙,或者设置开放samba服务端口。
回复 支持 反对

使用道具 举报

发表于 2005-9-4 17:32:56 | 显示全部楼层
没人发现这个错误信息里面写着 localhost?
回复 支持 反对

使用道具 举报

发表于 2005-9-6 12:28:40 | 显示全部楼层
十之89是防火墙的问题
回复 支持 反对

使用道具 举报

发表于 2005-9-6 16:13:17 | 显示全部楼层
Post by BlazingBits
没人发现这个错误信息里面写着 localhost?


兄台说的对,机器名字别叫 localhost。:)。
回复 支持 反对

使用道具 举报

发表于 2005-9-6 17:08:11 | 显示全部楼层

借用一下别人的东东

在/etc/下找到smb.conf,用VI编辑器打开,
# vi /etc/smb.conf或vi /etc/samba/smb.conf
在【gobal】字段下,添加netbios记录,一般加在workgroup记录的下一行
;netbios name = testsamba
在【gobal】字段下,修改secrity记录;
secrity = share
在【public】字段下,修改path记录;
path = /pub
在【public】字段下,添加geuest ok记录;
guest ok = yes
删除【public】字段每行行首的";"标示;
保存退出。
回复 支持 反对

使用道具 举报

发表于 2005-9-6 19:14:28 | 显示全部楼层
Post by 黯然销魂
兄台说的对,机器名字别叫 localhost。:)。


这名字也太酷了吧? localhost可以这么用吗?
回复 支持 反对

使用道具 举报

发表于 2005-9-6 19:19:55 | 显示全部楼层
没人对localhost这个词敏感吗?

你改掉保证你马上可以用。不信的可以把自己电脑的 smb.conf 里面的 netbios name 改成 localhost再从局域网其他电脑访问试试~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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