Samba creates huge tmp, prf files on XP client and doesnt load profile.

Discussion in 'Server Operation' started by skirao, Oct 22, 2008.

  1. skirao

    skirao New Member

    Hi all,

    I have configured samba in Ubuntu 8.04 as a PDC and roaming profiles are enabled. Here's what is happening, whenever users log off, it creates huge tmp and prf files on the desktop of each user. The files size is about 3GB!!! So, the user takes atleast 15mins to login again.

    I have deleted these files as root, but i don't know how these files are created again! Below is my smb.conf file. I have created a profiles share for the users.

    # Global parameters

    netbios name = studio-server
    ;interfaces = eth1, lo
    ;bind interfaces only = Yes
    passdb backend = tdbsam

    ; Domain Management
    domain master = yes
    local master = yes
    preferred master = Yes
    domain logons = Yes
    logon home = \\%L\%U
    logon path = \\%L\profiles\%U
    logon drive = p:
    ;logon script = logon.bat

    wins support = Yes
    os level = 65

    #winbind uid = 10000-20000
    #winbind gid = 10000-20000
    #winbind use default domain = yes
    #username map = /etc/samba/smbusers

    log level = 1
    syslog = 0
    log file = /var/log/samba/%m
    max log size = 50
    smb ports = 139
    name resolve order = wins bcast hosts
    time server = NO
    #printcap name = CUPS
    show add printer wizard = No

    ;shutdown script = /var/lib/samba/scripts/
    ;abort shutdown script = /sbin/shutdown -c
    utmp = Yes
    map acl inherit = Yes
    printing = cups

    #veto files = /*.eml/*.nws/*.{*}/
    #veto oplock files = /*.doc/*.xls/*.mdb/

    hosts allow =
    security = user
    smb ports = 139
    add user script = /usr/sbin/useradd -m '%u'
    delete user script = /usr/sbin/userdel -r '%u'
    add group script = /usr/sbin/groupadd '%g'
    delete group script = /usr/sbin/groupdel '%g'
    add user to group script = /usr/sbin/usermod -G '%g' '%u'
    add machine script = /usr/sbin/useradd -s /bin/false -d /var/lib/nobody '%u'
    #include = /etc/samba/dc-common.conf

    comment = Home Directory
    valid users = %S
    read only = No
    browseable = No
    path = /home/%u

    # Share and Service Definitions are common to all servers

    comment = Student common Share Directory
    browsable = yes
    path = /home/export/
    read only = No
    writable = yes

    comment = Profile Share
    path = /var/lib/samba/profiles
    read only = No
    profile acls = Yes
    writable = yes
    browsable = no

    ;shutdown script = /var/lib/samba/scripts/
    ;abort shutdown script = /sbin/shutdown -c

    ;comment = Network Logon Service
    ;path = /var/lib/samba/netlogon
    ;logon script = %U.bat
    ;guest ok = Yes
    ;locking = No
    ;read only = no
    ;root preexec = /var/lib/samba/bin/make_logon_script '%U'

    #comment = SMB Print Spool
    #path = /var/spool/samba
    #guest ok = Yes
    #rintable = Yes
    ;use client driver = Yes
    ;default devmode = Yes
    ;browseable = No
    ;comment = Application Files
    ;path = /apps
    ;admin users = sambauser
    ;read only = No

Share This Page