[Samba] Roaming Profile won't upload to workstation that didn't create it

Rob Mason rob at cissp.org.uk
Mon Feb 13 10:16:12 GMT 2006


Hi,

I believe I've had a 'hidden' roaming profiles problem with Samba for a 
while (I have no idea when it first manifested itself - sometime between 
3.0.2 and 3.0.21a).

When I create a new user, their client workstation creates and updates 
the profile without any problems.  Existing profiles used by existing 
client workstations are also fine.  However, when I try to logon as an 
existing user to a new workstation client, the existing saved profile 
will not upload - the client hangs for about fifteen! minutes before 
loading a minimal profile.  The only log file clue I have is:

[2006/02/13 09:27:27, 0] lib/util_sock.c:read_data(526)
  read_data: read failure for 4 bytes to client 192.168.200.6. Error = 
Operation timed out
[2006/02/13 09:27:27, 1] smbd/service.c:close_cnum(839)


To summarise:
===========
New User + New Workstation = OK
New User + Existing Workstation = OK
Exisitng User + Existng Workstation = OK
Existing User + New Workstation= NO LOAD ???


smb.conf:

# Global parameters
[global]
        workgroup = BSDBOX
        netbios name = SERVER
        server string = BSDBox
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=16384 
SO_RCVBUF=16384
        hosts allow = 192.168.200., 127.0.0.1

        passdb backend = tdbsam
        passwd program = /usr/local/bin/passchange.sh %u
        passwd chat = *Password* %n\n *Password* %n\n *Changed*\n
        unix password sync = Yes
        username map = /usr/local/etc/samba/smbusers

        log level = 1
        log file = /var/log/samba/%m.log
        max log size = 100

        printing = cups
        printcap name = cups

        logon script = netlogon.cmd
        logon path = \\%L\profiles\%U
        logon drive = Z:
        logon home = \\%L\%U
        domain logons = Yes
        os level = 65
        preferred master = Yes
        domain master = Yes
        wins support = Yes
        remote announce = 192.168.200.8
        time server = yes

        admin users = root
        hide unreadable = Yes
        create mask = 0644
        add group script = /usr/local/etc/samba/smbgrpadd.sh "%g"
        delete group script = /usr/local/etc/samba/smbgrpdel.sh "%g"

        veto oplock files = /*.doc/*.xls/*.mdb/

[profiles]
        path = /usr/local/profiles
        read only = No
        browseable = No
        profile acls = yes
        csc policy = disable
        hide files = /desktop.ini/ntuser.ini/NTUSER.*/
        write list = @ntuser @wheel
        create mask = 0600
        directory mask = 0700

[netlogon]
        path = /home/netlogon
        write list = root
        browseable = No
        read only = Yes
        locking = No

[homes]
        comment = Home Directories
        read only = No
        create mask = 0600
        directory mask = 0700
        browseable = No

[tmp]
        comment = Temporary file space
        path = /tmp
        read only = No
        directory mask = 0775
        guest ok = Yes
        browseable = No

[backup]
        comment = BSDBox backup
        path = /usr/local/backup
        valid users = masonr
        write list = masonr

[PDF]
        comment = PDF Spool Directory
        path = /var/spool/cups-pdf
        write list = masonr
        guest ok = yes

[printers]
        comment = All Printers
        path = /var/spool/samba
        #printer admin = root, masonr
        guest ok = yes
        printable = Yes
        browseable = No

[print$]
        comment = Printer Drivers
        path = /usr/local/share/cups/drivers
        write list = root, masonr
        guest ok = no



More information about the samba mailing list