diary : entry

Samba Problems

3rd May 2005 at 11:03
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

  1. Err-and you wonder why noone comments on your journal?!
    Leela3rd May 2005 at 11:37
  2. Hey, it's a valid (and useful) post. I never knew that before - AND - I might need to know in the future!

    Wow!

    ;)
    Mark S3rd May 2005 at 13:23
  3. Doh. Troll baited.
    Hook, line and sinker!
    Mark S3rd May 2005 at 16:38
  4. 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!
    Leela5th May 2005 at 10:55
  5. Thanks. I needed this post today.
    john8th April 2006 at 20:39
  6. Excellent! Glad it's been of help to someone else :)
    radiac9th April 2006 at 12:04

Add a comment

Name:(required)
E-mail:(will not be made public)
Website:
Comment:
Animal: Your animal of the day is:


Please enter it below:

Thank you for proving you are a human, not a spammer!
 

Links