Windows doesn't send passwords to Samba

Posted on 2002-06-05
Last Modified: 2010-03-18
This is really a Windows question, but I figure an expert on Samba ought to know the answer.  

Samba rejects attempts by my Windows machine to connect.  Hours of studying and investigation shows that the reason is that Windows is not sending a password with the userid.  It sends the expected userid, but the "password length" fields in the packet are zero.  This in spite of the fact that I type in a real password when "NET USE" prompts me for one.  I also type one into the "network login" box when I log in to Windows.

Any idea how I persuade Windows to send a password?

It's Windows ME.

Question by:bryanh
  • 4
  • 2
LVL 40

Expert Comment

ID: 7058515
Do you have Samba configured to use encrypted passwords and does this user have an SMB encrypted password (meaning that you created an SMB password with sbmpassed)? Also take note of the fact that the windows user name must be the same as the Linux user name and that case matters for both the username and password.
LVL 40

Expert Comment

ID: 7058518
Oh yes, have you configured the ME box to require a a logon before accessing windows?

Author Comment

ID: 7059462
No, there's no smbpasswd file and the smb.conf file is the simple one from the "installing on unix" instructions.

The ME box puts up a window when it boots asking for a network userid and password.  It doesn't seem to care at that point what I type for password, but if it isn't right a later box comes up asking me to log on to windows and type the correct password.  In all cases permutations of passwords entere/required, the packets set by NET USE contain zero length passwords, according to the Samba-enhanced Tcpdump.

New! My Passport Wireless Pro Wi-Fi Mobile Storage

Portable wireless storage to offload, edit, and stream anywhere.

High-capacity, wireless mobile storage designed to accompany professional photographers and videographers in the field to easily offload, edit and stream captured photos and high-definition videos.

LVL 40

Accepted Solution

jlevie earned 100 total points
ID: 7059787
I think that ME will only send an SMB encrypted password to the server and it may be that the only one it sends is the one assocaiated with the user you logged in to ME with. So far as I know ME, 95, and 98 are alike in this regard and those OS's don't use the username/password themselves, but hang on to it for authentication to servers.

Try this. On the Samba server create an SMB password for the Linux username that you'll be using on the ME box using the same password as you use on ME. Also check your smb.conf file to be sure that it contains "encrypt passords = yes" and if you have to add or uncomment that line restart Samba. Then log onto the ME box and see if you can access tings on the Samba server.

Author Comment

ID: 7061005
After I read about encrypted passwords in the Samba documentation, I could see that you're exactly right.  One can enable unencrypted passwords in the registry, but all modern Windows variations have it disabled by default.  Of course, Windows doesn't have the courtesy to issue a message saying, "the server will accept only unencrypted passwords and you have disabled those so I sent a null password instead and guess what?  the server didn't accept it."  Instead, the error message is "invalid password.  Enter the correct one."

I set up encrypted passwords and all is well.

Hard to believe the Samba "getting started" documentation still leads you through this unencrypted password dead end.  I will see if I can get that fixed.
LVL 40

Expert Comment

ID: 7061075
I'd have to agree with you about the ambiguity in the Samba doucmentation. It should say that anything since win95 w/service pack ? (don't remember which) requires encrypted passwords. This is a problem that has existed for a very long time and it ought to be emphasized that you pretty much need SMB encrypted passwords for things to work.

Featured Post

Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
WEBSITE Capture via Linux Router 2 87
Convert Routes to Linux (CENTOS 7.0) 3 89
Lame BIND 9.3 10 58
Website content filtering at different level 5 65
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: (…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now