Samba Password Authentication is failing

Peter Salzman p at dirac.org
Sun Jan 31 20:14:17 UTC 2010


On Sun, Jan 31, 2010 at 2:26 PM, Thomas Kaiser <ubuntu at kaiser-linux.li> wrote:
> On 01/31/2010 06:44 PM, Peter Salzman wrote:
>> For reference:
>> Satan    Linux       192.168.1.2
>> Lucifer   WinXP   192.168.1.3
>>
>> Partial success.   Now I'm more confused than ever because what's
>> happening contradicts what I think I know about windows networking.
>>
>> First of all, the two files
>>
>>       C:\WINDOWS\system32\drivers\etc\lmosts.sam
>>       C:\WINDOWS\system32\drivers\etc\hosts
>>
>> contain:
>>
>>      192.168.1.2 satan
>
> I think lmosts.sam should be called only lmhosts (or lmosts.sam is not
> only a typo in the email, try lmhosts.sam). When I remember correctly,
> the .sam extension means "sample" and is not used on the real file.
>
>>
>> and as such, from Lucifer, I can "ping satan" and "ping 192.168.1.2"
>> successfully.   That's no surprise.
>>
>> However, this is a surprise: From Windows explorer,
>>
>>      \\192.168.1.2\tmp
>>
>> works!  I get a listing of my Linux /tmp directory.   However, when I
>> try to use this in the Windows explorer:
>>
>>      \\satan\tmp
>>
>> I get an error msg saying "\\satan\tmp is not accessible.  Logon
>> failure: unknown user name or bad password".
>>
>> How can one work and the other one not work?
>
> Thomas

Tom, thank you.   My problem is solved.

I still see things like this in my Samba log files:

[2010/01/31 15:09:50,  2] smbd/reply.c:458(reply_special)
  netbios connect: local=satan remote=lucifer, name type = 0

[2010/01/31 15:09:50,  2] auth/auth.c:320(check_ntlm_password)
  check_ntlm_password:  Authentication for user [p] -> [p] FAILED with
error NT_STATUS_WRONG_PASSWORD

[2010/01/31 15:09:50,  2] auth/auth.c:320(check_ntlm_password)
  check_ntlm_password:  Authentication for user [p] -> [p] FAILED with
error NT_STATUS_WRONG_PASSWORD

[2010/01/31 15:09:51,  2] auth/auth.c:320(check_ntlm_password)
  check_ntlm_password:  Authentication for user [p] -> [p] FAILED with
error NT_STATUS_WRONG_PASSWORD

[2010/01/31 15:09:56,  2] auth/auth.c:310(check_ntlm_password)
  check_ntlm_password:  authentication for user [p] -> [p] -> [p] succeeded

[2010/01/31 15:09:56,  1] smbd/service.c:1047(make_connection_snum)
  lucifer (192.168.1.3) connect to service mp3 initially as user p
(uid=1000, gid=1000) (pid 15318)

[2010/01/31 15:10:12,  1] smbd/service.c:1047(make_connection_snum)
  lucifer (192.168.1.3) connect to service tmp initially as user p
(uid=1000, gid=1000) (pid 15318)

[2010/01/31 15:10:38,  1] smbd/service.c:1226(close_cnum)
  lucifer (192.168.1.3) closed connection to service tmp


But I'm going to assume that Samba is trying different methods of
authentication (maybe it tries PAM, kerberos, etc) and then finds a
method that finally works.   Not exactly sure.

But I can access all my Linux shares from Windows and all my Windows
shares from Linux, so I'm happy.

Thank you so much!
Pete




More information about the ubuntu-users mailing list