[Samba] Samba mapped drive to XP on logon

steves at braingia.org steves at braingia.org
Tue Sep 30 13:18:38 GMT 2008


I'm having a recurring problem with Windows XP and a Samba share on 
logon.  More specifically, I have a Samba (v 3.0.24 on Debian Etch) 
share with share permissions (not a domain) mapped to a drive in Windows 
XP Pro.  Whenever someone logs onto an XP Pro computer in the network 
the drive isn't there.

Here's an example: Say there's a document on the shared drive and a 
shortcut to that document on the XP desktop.  If I click on the 
shortcut, Windows can't find the document.  However, opening My Computer 
and/or browsing to the drive works and then I can use the shortcut on 
the desktop.  This behavior is the same regardless of the application, 
anything that tries to access the share prior to opening My Computer 
will fail.  

Once the drive is accessed for that first time manually, it works 
perfectly fine for the remainder of the session.  This behavior occurs 
across several XP Pro clients in the network.  I think it's also notable 
that the "Unable to reconnect to all network drives" or whatever balloon 
pop-up does *not* appear, so there's no indication that something is 
wrong until I try to access something on the share drive before 
navigating to it manually.

I've searched through docs, etc, but haven't been able to find anyone 
with similar behavior or that describes it in the same way, at least.  

Thank you for any help or pointers to FAQs or otherwise.

Here's the global config:

        workgroup = WRK
        netbios name = SERVER1
        netbios aliases = dataserver
        server string = %h (Data Server)
        security = USER
        encrypt passwords = true
        passdb backend = tdbsam
        null passwords = no
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\sUNIX\spassword:* %n\n *Retype\snew\sUNIX\spas
sword:* %n\n .
        lanman auth = No
        max log size = 1000
        socket options = IPTOS_LOWDELAY TCP_NODELAY SO_SNDBUF=4096 SO_RCVBUF=4096
        remote announce =
        username map = /etc/samba/smbusers
        unix password sync = Yes
        wins support = Yes
        preferred master = Yes
        name resolve order = wins bcast hosts
        time server = Yes

Here's the share config:

        comment = Shared Directories
        path = /srv/share
        create mask = 0775
        writeable = yes
        browseable = no
        admin users = steves
        guest ok = no
        force group = users
        valid users = steves

More information about the samba mailing list