LinuxSir.cn,穿越时空的Linuxsir!

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

samba无法互相访问

[复制链接]
发表于 2002-12-5 23:01:21 | 显示全部楼层 |阅读模式
我配置了samba,但是只能在我的linux上访问 winxp 和 win2000,而他们在网上邻居里看不到我,只能用搜索才能够找到,但是点主机出现下面的对话框:
//muzi无法访问。您可能没有权限使用网络资源。请与这台服务器的管理员联系已查明您是否有权限。此账户并未得到这个工作站登陆的授权。
winxp 主机名:Lll  用户名:llll
win2000 主机名:djw  用户名:Administrator
下面是我的配置文件:
**********
smb.conf
*********
[global]
workgroup = 524
netbios name = muzi
server string = Samba %h
security = user
smb passwd file = /etc/samba/smbpasswd
logfile = /var/log/samba/log.%m
;socket option = IPTOS_LOWDELAY TCP_NODELAY
domain master = yes
local master = yes
preferred master = yes
os level = 65
;hosts deny = ALL
hosts allow = 192.168.3. 127.0.0.1
[home]
comment = Temporary File space
path = /tmp
read only = no
valid users = lgy Administrator llll
[public]
comment = temporary file space
path = /home
read only = no
valid users= lgy Administrator llll
***********
lmhosts
*******127.0.0.1 localhost
192.168.3.203 muzi
192.168.3.202 Lll
192.168.3.204 djw
************
smbuser
**********
# Unix_name = SMB_name1 SMB_name2 ...
root = administrator admin
nobody = guest pcguest smbguest lgy llll Administrator
**********
还有一个smbpasswd文件,就是/etc/passwd文件的备份,我考到这里了
在/var/long/samba里面有几个log文件
log.djw  log.lll log.muzi  log.lgy  log.nmbd  log.smbd

这里面log.djw  log.lll log.lgy  都是空的,这是为什么?
好不容易发了这个帖子,请各位帮帮忙,我已经整 samba   n天了,还是搞不定,郁闷阿!!!
发表于 2002-12-6 09:18:19 | 显示全部楼层
用smbadduser生成samba用户,然后用这个用户登陆samba因为你的安全级别定义为user级,所以你得这么做
发表于 2002-12-6 17:30:05 | 显示全部楼层
请教楼上的一个问题:
通过samba,如何自动将win用户所放的文档变为lin用户的?
发表于 2002-12-6 17:58:55 | 显示全部楼层
我是新学的samba配置,也出了一些问题,我基本没有做什么改动,只是把
[GLobal]的workgroup=testgroup,
[share]
path=/home/gjm
valid user=root
public=yes

问题:windows client能够看到组testgroup,但是,进不去,说是网络路径不通
 楼主| 发表于 2002-12-6 18:25:54 | 显示全部楼层
可是即使我用share,它也是不行啊
发表于 2002-12-7 12:47:52 | 显示全部楼层
1.linux的用户名是??
2.windows的工作组是??
3.windows修改注册表了么??
 楼主| 发表于 2002-12-9 21:07:23 | 显示全部楼层
老大,下面是我的配置文件,麻烦帮忙看一下:
[global]
workgroup = 524
netbios name = muzi
server string = Samba %h
security = share
;smb passwd file = /etc/samba/smbpasswd
logfile = /var/log/samba/log.%m
;socket option = IPTOS_LOWDELAY TCP_NODELAY
domain master = yes
local master = yes
preferred master = yes
os level = 65
;hosts deny = ALL
hosts allow = 192.168.3. 127.0.0.1
guest ok = yes
[home]
comment = Temporary File space
path = /tmp
read only = no
valid users = muzi llll
[public]
comment = temporary file space
path = /home
read only = no
valid users= muzi llll
在下面是log.lll,请再看一下:[2002/12/09 20:17:14, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:20, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:20, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:20, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:20, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:20, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:26, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:27, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:29, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:29, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:29, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:29, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:30, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:30, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:34, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:34, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:34, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:34, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:34, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:34, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:40, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:40, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:40, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:40, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:43, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:43, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:49, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:49, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:49, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:17:49, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:19:24, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:19:24, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:19:29, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:19:29, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:19:29, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:19:29, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:19:29, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:19:29, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:19:31, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:19:31, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:19:31, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:19:31, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:25:45, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:25:50, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:25:58, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:25:58, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:25:58, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:25:58, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:25:59, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:25:59, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:26:00, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:26:00, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:26:00, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:26:00, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:26:59, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:27:00, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:27:05, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:27:05, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:27:05, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/09 20:27:05, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
请帮忙分析一下原因,等待!!!
发表于 2002-12-10 10:13:34 | 显示全部楼层
老兄,你用的是什么版本呀。我用的是rh8
如果你也是用这个。我可以把我的配置文件传给你。
我现在用一点问题都没有。
 楼主| 发表于 2002-12-10 11:35:59 | 显示全部楼层
好的,谢谢上面的兄弟,可不可以吧你的配置贴出来,我用的就是rh8。
发表于 2002-12-10 12:07:20 | 显示全部楼层
我来帮大家吧 :
首 先    假定 我的用户组(工作组)为 : TopStation
我的主机的名字 在安装系统时 定为 : top
ip 地址 : 192.168.0.1  那么我的网段 192.168.0.  127
共享目录 为 [tmp]
我们只需要 配置 /etc/samba/smb.conf   
的 [global]  段:
workgroup =  TopStation
hostallow = 192.168.0. .127
interface =  192.168.0.1/24  允许的访问: 默认的掩码 255.255.255.0
server string = Samba Server
security = share  ( 安全级为共享 )
这个段 就这样  其他的内容你可以根据 英文 提示 选择或不选择
如果你想 共享某个目录 我的为: [tmp]
那么你可以在
[tmp]
  前 去掉 # 号 就可以了  如果 你的 public = no  那么改为 : yes
重新启动 samba  命令: /etc/rc.d/init.d/smb restart
就可以了  
你可以使用 : testparm  查看
password : 你的root 密码 当然你是看不见得  
如果顺利的话  一点问题都没有  
我现在在同学的机子上 以上 都是我的经验  没有现成的smb.conf 给大家看
感谢我的同学
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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