QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1504|回复: 4

继续求救samba!!!

[复制链接]
发表于 2002-12-13 22:01:09 | 显示全部楼层 |阅读模式
继续求救:下面是我的配置文件
[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-14 11:37:29 | 显示全部楼层
同一用户把两个密码(passwd,smbpasswd)设为一至,看可不可以
回复

使用道具 举报

 楼主| 发表于 2002-12-16 21:40:50 | 显示全部楼层
我试过了,还是不丁啊
大家再帮帮忙,郁闷等待中
回复

使用道具 举报

 楼主| 发表于 2002-12-17 22:25:03 | 显示全部楼层
谢谢大哥,用你的方法已经搞定了。
不过新的问题出现了,我一不小心不知道怎么就用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
password:这个密码输入哪一个???????????????????
还有如果我输入了muzi登陆的密码。他提示:
session setup failed  :nt_status_logon failed,
请问这事什么原因?????????????????
另一个问题。是不是我在机子上建立smb账户的时候,这个帐户和密码必须在另一台要登陆我的windows机子上存在呢,有这个必要吗????????????
请各位帮忙解决问号多的问题?????????
谢过!
回复

使用道具 举报

 楼主| 发表于 2002-12-17 22:49:27 | 显示全部楼层
先看我的第二个问题:
在smb.conf中,如果我把guest account =
后面设为nobody,那么就不会出现上面的那个问题,如果我社为pcguest,那么就会出现session setup failed :nt_status_logon failed这个提示,我刚才看书上面的关于这个参数的设置了,可是我还是不明白什么意思,那位帮忙解决一下,等待!
回复

使用道具 举报

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

本版积分规则

GMT+8, 2024-11-17 17:50 , Processed in 0.036740 second(s), 15 queries .

© 2021 Powered by Discuz! X3.5.

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