[Samba] Samba PDC adding new user, profile dir is not created

TAKAHASHI Motonobu monyo at monyo.com
Wed Mar 16 10:21:43 MDT 2011


From: "J. Echter" <j.echter at elektro-mayer-echter.de>
Date: Wed, 16 Mar 2011 11:09:59 +0100

> i have a Samba PDC (no LDAP) and added add user script to my config.
> 
> I can create the user with no problems, login is possible but the 
> /home/samba/profile/user dir is not created.
> 
> Any hints on that?

You should show us enough information for us to re-produce such as 
all content of smb.conf and related settings:

In my lab, profile dir is successfully created. My env is...

- Debian lenny (hostname is "lenny5") + self-compiled Samba 3.5.6
- my smb.conf and shares

---
[global]
  workgroup = SAMBA
  domain logons = yes
  add machine script = useradd %u
  map to guest = bad user

  logon path = \\lenny5\profiles\%U

[homes]
  writeable = yes
  browseable = no

[profiles]
  path = /var/lib/samba/shares/profiles
  guest ok = yes
  browseable = no
  create mask = 0600
  directory mask = 0700
  writeable = yes
---

# ls -lR /var/lib/samba
/var/lib/samba/:
total 4
drwxr-xr-x 6 root root 4096 2011-03-15 20:48 shares

/var/lib/samba/shares:
total 16
drwxrwxrwx 6 root root 4096 2011-03-17 01:07 profiles

- Created a user:

# useradd -d /var/home/test01 test01
# smbpasswd -a test01
# pdbedit -v test01
...
Profile Path:         \\lenny5\profiles\test01
...


- When I logon as test01 from Windows XP workstation which is already
  joined to the "SAMBA" domain and logoff, profiles are created like:

# ls -lR /var/lib/samba
total 4
drwxr-xr-x 6 root root 4096 2011-03-15 20:48 shares

/var/lib/samba/shares:
total 16
drwxrwxrwx 6 root root 4096 2011-03-17 01:07 profiles

/var/lib/samba/shares/profiles:
total 16
drwx------ 13 test01 test01 4096 2011-03-17 01:08 test01

/var/lib/samba/shares/profiles/test01:
total 568
drwx------ 3 test01 test01   4096 2010-10-11 01:10 Start Menu
drwx------ 2 test01 test01   4096 2010-10-11 01:10 Desktop
drwx------ 4 test01 test01   4096 2011-03-17 01:08 Application Data
drwx------ 2 test01 test01   4096 2010-10-11 01:18 Cookies
drwx------ 3 test01 test01   4096 2011-03-17 01:08 Favorites
drwx------ 4 test01 test01   4096 2011-03-17 01:08 My Documents
drwx------ 2 test01 test01   4096 2010-10-11 01:10 NetHood
-rw------- 1 test01 test01 524288 2011-03-17 01:08 NTUSER.DAT
-rw------- 1 test01 test01   1024 2011-03-17 01:08 ntuser.dat.LOG
-rw------- 1 test01 test01    270 2011-03-17 01:08 ntuser.ini
...

---
TAKAHASHI Motonobu <monyo at monyo.com>


More information about the samba mailing list