Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I've setup a simple Ubuntu 10.04 file server and want to have a handful of users attach from windows machine to a Shared drive and to private Home directories on a per machine basis.

I've got this all setup and have mapped the drives within windows (Shared = Z:, Home = H:) on one of the machines and everything works fine. However when I restart the user machine they are still able to access the shared drive, but when trying to open their Home drive I get the error,

An error occured while reconnecting H: to \\Server01\homes Microsoft Window Network: The network name cannot be found. This connection has not been restore

If I then disconnect from the Home and Shared drive and reconnect then everything work fine, until I have to reboot the machine again!

Any ideas why this is happening and how I can get round it?


OK so I've made a little progress. If instead of mapping to the \Server01\homes directory I map to the \Server01\username directory, then I don't get the error message like before. However it does say:

Incorrect password or unknown username for: \\Server01\username

If I enter the exact same password as before then I connect fine, but I'd rather not have to force my users to enter a password each time the machine is started.

share|improve this question
1  
Is the user/pass you use for logging in to windows the same as you use with samba? –  Source Lab Sep 28 '10 at 14:54
    
There are no logins to the windows machines. –  user2270 Sep 30 '10 at 13:23
add comment

closed as too localized by Luis Alvarado Mar 14 '13 at 17:18

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

To me this looks more a Windows issue than an Ubuntu one: I suspect the Windows client is trying to connect with the wrong password (or no password at all) to the \server01\homes share.

IIRC, right after login, Windows will try connecting to authenticated shares using the same username/password combination that was used for logging in; if the username/password combination used on Windows does not match what the SAMBA server running on Ubuntu expects, the share will not be mounted because of an authentication error. (I think this is what SourceLab was hinting to in his comment.)

share|improve this answer
    
I agree. It sounds like the Windows box is trying to use Windows logon credentials to access the network share. This is the default mode of authentication in Windows. –  Nilpo Jan 24 '12 at 17:22
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.