Samba Problems

I've been using samba with many windows machines for many years and never had this problem before, and google has no record of it happening anywhere. So either I'm incredibly stupid or unlucky, I'm not sure which.

I'm running Debian with a backported 2.6 kernel and samba 3, and connecting to it from a windows 2000 machine, all working fine. After my hard drive failure and subsequent reinstallation of w2k, I wanted my linux share to appear as a networked drive in windows as it did before, so I went to 'map network drive', typed in the share path and set it to connect with different username and password. It connected fine, as I expected it to, so I thought nothing more of it. Until I rebooted and got "Invalid username or password".

Tracked it down to the following line in my samba log:

smbd/password.c:authorise_login(573)

authorise_login: rejected invalid user nobody

So windows was trying to connect without the username+password I had set when I mapped the network drive.

After much prodding of bits and pieces, I eventually tracked it down to something annoyingly simple; it turns out that windows seems to forget these things when you don't have a password set on your windows account. So set a password, remount the drive and it all works fine.

Nowhere does windows say that if I don't set a password on my account, my network username and password will not be remembered. Neither does it have a button to set who to automatically log the machine on as, it only pops up at the end of the control panel -> users options. So I guess I'm off the hook as far as stupid goes. Well, I'd like to think so.

Comments

Leela

Err-and you wonder why noone comments on your journal?!

Mark S

Hey, it's a valid (and useful) post. I never knew that before - AND - I might need to know in the future!

Wow!

;)

Mark S

Doh. Troll baited.
Hook, line and sinker!

Leela

Is that Mark Swannie?! Well I spied you the other week in the Green Park bit, outside Sainsbury's, but you did not see me! I only knew it was you because I could see a smuggler t shirt and the person wearing it was about a foot taller than me, so I assumed it was you! Sorry Richie for abusing your journal!

Thanks. I needed this post today.

Excellent! Glad it's been of help to someone else :)

Leave a comment