[Samba] Roaming Profiles

Nelson Vale
Fri, 11 May 2007 15:55:59 -0000

Hello all,

I have a samba 3.0.9 acting as a PDC in a network where all users use
Win XP, and all is working fine except for Roaming Profiles.

The thing is that when I create a new user and login into the domain,
windows will store the profile from one of the existing users, normally
the profile of the first user created, in the user's profile dir (in
linux).

Even stranger is that if I create a new file, for instance in the
desktop dir of the new user, this file will also be stored in the first
user desktop dir.

The smb.conf file is:

[global]
        ldap user suffix = ou=People
        idmap gid = 10000-20000
        passwd chat = *new* %n\n *retype\snew* %n\n *changed*
        logon drive = z:
        map to guest = Bad User
        domain master = yes
        wins proxy = no
        passwd program = /usr/bin/change_password.pl %u
        passdb backend = ldapsam:ldap://127.0.0.1
        wins support = yes
        ldap delete dn = Yes
        server string = Samba Server
        ldap machine suffix = ou=Computers
        ldap group suffix = ou=Groups
        idmap uid = 10000-20000
        ldap suffix = dc=local,dc=loc
        unix password sync = yes
        local master = yes
        workgroup = TEST
        ldap admin dn = cn=Administrator,ou=Users,dc=local,dc=loc
        security = user
        preferred master = yes
        add machine script = /usr/bin/computer_add.pl '%m'
        ldap idmap suffix = ou=Idmap
        domain logons = yes
[netlogon]
        root preexec = sh -c '/usr/sbin/pdc-sua.pl %U %I NETLOGON'
        valid users = root @users
        writeable = no
        browsable = no
        public = no
        path = /home/samba/netlogon/
[homes]
        create mask = 0664
        root preexec = sh -c '/usr/sbin/pdc-sua.pl %U %I PREEXEC &&
rm
"/home/users/%U/profile/Start Menu/Programs/Startup/desktop.ini"'
        comment = Home Directories
        read only = No
        directory mask = 0775
        browseable = No
        valid users = %S
        hide files = desktop.ini




My questions are:

Is this a known issue or can it be a bad Samba configuration?
Is there any solution for this?
I'am missing something?