LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-26-2010, 09:44 AM   #1
sharpblade
LQ Newbie
 
Registered: Feb 2005
Posts: 13

Rep: Reputation: 0
Smile strange when accessing Samba


Two PCs with winxp (computer names are p01056a and p01056e) needs to access a samba on FC9. The three are all in the same subnet. The two winxp are both in the windows domain AAA, and both using the domain account 'p01056' to logged in. When accessing the Linux samba server using samba account 'p01056', p01056a succeeded, but p01056e failed.

1. smb.conf
Code:
[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

Code:
root = administrator admin
nobody = guest pcguest smbguest
p01056 = p01056
3. samba log when fail
Code:
[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
Any advice?
 
Old 10-26-2010, 11:41 PM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Use the smbclient //samba-server/tmp command to attempt a command-line login to the Samba server.

Last edited by prayag_pjs; 10-26-2010 at 11:45 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange warning message when accessing zip files on specific samba share bdb4269 Linux - General 4 01-31-2011 02:26 PM
Strange Delay when Accessing Internet Resources RAdams Linux - Networking 4 08-28-2006 09:38 AM
Accessing SAMBA Share via MS VC++ dhammika Programming 0 12-01-2004 10:14 PM
Accessing Samba Shares The_Q DamnSmallLinux 2 02-05-2004 04:36 AM
Serv-U accessing Samba fmertus Linux - Networking 2 06-12-2003 07:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:44 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration