LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: muzi4860

samba无法互相访问

[复制链接]
 楼主| 发表于 2002-12-10 19:03:21 | 显示全部楼层
那我贴出来的那个日志文件是说明什么问题啊,那里初的问题啊
发表于 2002-12-11 10:02:52 | 显示全部楼层
log 一般是日志记录 里面保存了一些信息(这里是网络)
当然你要是网络管理员 你每天应该检查他 不是的话
没什么必要 !
 楼主| 发表于 2002-12-11 11:50:00 | 显示全部楼层
我知道log一般是日志管理,我是问的我日志里面的内容表示出了什么问题。[2002/12/09 20:27:05, 0] smbd/password.c:authorise_login(863)
authorise_login: rejected invalid user nobody
就是最后一句,说明什么问题啊。
发表于 2002-12-12 19:56:55 | 显示全部楼层
wu  xiao  !
 楼主| 发表于 2002-12-12 21:16:50 | 显示全部楼层
我想知道是什么原因导致的。
 楼主| 发表于 2002-12-12 22:43:58 | 显示全部楼层
继续求救:下面是我的配置文件
[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
guest account = nobody
[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

下面是部分LLLL登陆的日志文件:
[2002/12/12 21:36:44, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:36:44, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:36:46, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:36:46, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:36:51, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:36:51, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:36:51, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:36:51, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:21, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:22, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:30, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:30, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:30, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:30, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:30, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:30, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:37, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:37, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:37, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:37, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:48, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:48, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:57, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:57, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:57, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:57, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody

下面是部分muzi登陆的文件:
[2002/12/12 21:34:00, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:34:02, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User llll !
[2002/12/12 21:34:02, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:34:32, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:34:34, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User llll !
[2002/12/12 21:34:34, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:34:48, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:34:48, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:35:13, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:35:15, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:35:18, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User llll !
[2002/12/12 21:35:20, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User llll !
[2002/12/12 21:35:20, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:35:33, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:35:36, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User llll !
[2002/12/12 21:35:36, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:36:11, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:36:58, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:37:15, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:37:17, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User llll !
[2002/12/12 21:37:17, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:37:24, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:37:55, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:38:28, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:38:31, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User llll !
[2002/12/12 21:38:31, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:38:36, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:38:57, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:39:00, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User llll !
[2002/12/12 21:39:00, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:39:39, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:40:39, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:40:39, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:40:45, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:40:45, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:41:18, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:41:18, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:41:27, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:42:38, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:42:47, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:42:49, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User llll !
[2002/12/12 21:42:49, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
[2002/12/12 21:43:14, 0] passdb/pampass.c:smb_pam_passcheck(827)
  smb_pam_passcheck: PAM: smb_pam_auth failed - Rejecting User muzi !
[2002/12/12 21:54:23, 0] smbd/password.c:authorise_login(863)
  authorise_login: rejected invalid user nobody
在本机上,如果用muzi登陆,输入我进入linux的密码,就可一进入,如果我用llll登陆,输入smbpasswd设置的密码不能登陆,只能输入passwd设置的密码才能登陆,而且另一XP机子只能看到我的文件夹,但是访问需要密码,可是输入这两个密码都不对,不能登陆,机子的名称为lll,登陆的用户名为llll,请各位帮帮忙,我实在是快被samba搞晕了,急切等待!!!
 楼主| 发表于 2002-12-13 19:16:07 | 显示全部楼层
帮忙看一看吧,急死了。
 楼主| 发表于 2002-12-17 22:16:59 | 显示全部楼层
谢谢大哥,用你的方法已经搞定了。
不过新的问题出现了,我一不小心不知道怎么就用smbpasswd里面的内容将smb.conf里的内容替换了,郁闷,所以只能重新在配置一下了,我的实验环境:
我的linux机子: muzi
另一台xp机子:用户名:llll,密码:qzmp
我先用adduser llll
然后 passwd llll
我输入的密码是:qzmp
然后我有用cat xxxxxx
接着 smbpasswd llll
然后smb密码:qzmp
这是一个全过程,然后这台机子就可以访问我的linux.,
可是在我的机子上,用smbclient -L muzi 这个命令,他出现
add xxxxxxxxxxxxxxxxxxxxxxxxxxxx
1\password:这个密码输入哪一个???????????????????
还有如果我输入了muzi登陆的密码。他提示:
2\session setup failed  :nt_status_logon failed,
请问这事什么原因?????????????????
3\另一个问题。是不是我在机子上建立smb账户的时候,这个帐户和密码必须在另一台要登陆我的windows机子上存在呢,有这个必要吗????????????
请各位帮忙解决问号多的问题?????????
谢过!:mad: :mad: :mad:
 楼主| 发表于 2002-12-17 22:48:33 | 显示全部楼层
先看我的第二个问题:
在smb.conf中,如果我把guest account =
后面设为nobody,那么就不会出现上面的那个问题,如果我社为pcguest,那么就会出现session setup failed :nt_status_logon failed这个提示,我刚才看书上面的关于这个参数的设置了,可是我还是不明白什么意思,那位帮忙解决一下,等待!
 楼主| 发表于 2002-12-19 10:12:58 | 显示全部楼层
今天问题终于解决了,终于可以在别的机子上访问我的LINUX了,不过问题还是上面的那个,就是关于GUEST ACCOUNT=参数的问题,大家帮帮忙,解释一下,谢过。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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