- 论坛徽章:
- 0
|
1. samba配置
1)smb.conf
- [global]
- workgroup = s3620
- server string = Samba Server Version %v
- netbios name = S3620Linux
- hosts allow = 10.153.96.
- log file = /var/log/samba/log.%m
- max log size = 200
- log level = 3
- security = user
- passdb backend = tdbsam
- cups options = raw
- username map = /etc/samba/smbusers
- [homes]
- comment = Home Directories
- writable = yes
- [p01056]
- path = /home/p01056
- writeable = yes
- valid users = p01056
复制代码
2)smbusers
- root = administrator admin
- nobody = guest pcguest smbguest
- p01056 = p01056
复制代码
2. 访问方式:
两台PC,都是winxp系统,计算机名一台是p01056a,另一台是p01056e,ip都属于10.153.96.0/24网段,
两台都属于域AAA,且都用域帐户p01056登陆到winxp中,再从winxp中访问samba的共享目录。
从p01056a可以正常访问samba上的共享目录,但从p01056e上则无法访问,失败时samba的log日志如下:
3. samba的log:
- [2010/10/22 10:12:20, 3] auth/auth.c:check_ntlm_password(220)
- check_ntlm_password: Checking password for unmapped user [AAA]\[p01056]@[P01056E] with the new password interface
- [2010/10/22 10:12:20, 3] auth/auth.c:check_ntlm_password(223)
- check_ntlm_password: mapped user is: [S3620LINUX]\[p01056]@[P01056E]
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:push_sec_ctx(224)
- push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 1
- [2010/10/22 10:12:20, 3] smbd/uid.c:push_conn_ctx(357)
- push_conn_ctx(0) : conn_ctx_stack_ndx = 0
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:set_sec_ctx(324)
- setting sec ctx (0, 0) - sec_ctx_stack_ndx = 1
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:push_sec_ctx(224)
- push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
- [2010/10/22 10:12:20, 3] smbd/uid.c:push_conn_ctx(357)
- push_conn_ctx(0) : conn_ctx_stack_ndx = 1
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:set_sec_ctx(324)
- setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:pop_sec_ctx(432)
- pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:push_sec_ctx(224)
- push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
- [2010/10/22 10:12:20, 3] smbd/uid.c:push_conn_ctx(357)
- push_conn_ctx(0) : conn_ctx_stack_ndx = 1
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:set_sec_ctx(324)
- setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:pop_sec_ctx(432)
- pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:push_sec_ctx(224)
- push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
- [2010/10/22 10:12:20, 3] smbd/uid.c:push_conn_ctx(357)
- push_conn_ctx(0) : conn_ctx_stack_ndx = 1
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:set_sec_ctx(324)
- setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:pop_sec_ctx(432)
- pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:push_sec_ctx(224)
- push_sec_ctx(0, 0) : sec_ctx_stack_ndx = 2
- [2010/10/22 10:12:20, 3] smbd/uid.c:push_conn_ctx(357)
- push_conn_ctx(0) : conn_ctx_stack_ndx = 1
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:set_sec_ctx(324)
- setting sec ctx (0, 0) - sec_ctx_stack_ndx = 2
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:pop_sec_ctx(432)
- pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 1
- [2010/10/22 10:12:20, 3] smbd/sec_ctx.c:pop_sec_ctx(432)
- pop_sec_ctx (0, 0) - sec_ctx_stack_ndx = 0
- [2010/10/22 10:12:20, 3] libsmb/ntlm_check.c:ntlm_password_check(346)
- ntlm_password_check: NT MD4 password check failed for user p01056
- [2010/10/22 10:12:20, 2] auth/auth.c:check_ntlm_password(318)
- check_ntlm_password: Authentication for user [p01056] -> [p01056] FAILED with error NT_STATUS_WRONG_PASSWORD
- [2010/10/22 10:12:20, 3] smbd/error.c:error_packet_set(61)
- error packet at smbd/sesssetup.c(127) cmd=115 (SMBsesssetupX) NT_STATUS_LOGON_FAILURE
复制代码
大家帮看看p01056e这台PC哪里不对劲了,为什么访问不了samba?
虽说log里错误信息是密码不对,但我从另一台PC用同样的密码就没问题。 |
|