[Samba] samba4 and dsadd command

Rowland Penny rowlandpenny at googlemail.com
Mon Mar 10 02:53:15 MDT 2014

On 10/03/14 08:19, OR wrote:
> Greetings! FreeBSD amd64 10.0 operating system software installed Samba 4.1.4 from ports with defaultsettings. From Windows 7 32-bit Enterprise (Hungary) client from the command lineI started a dsadd command, which included the following: dsadd user CN=ValakiJanos,OU=Tart,DC=valami,DC=local -pwd Jelszok_ -hmdrvP: -hmdir \\probal\home\ValakiJanos -profile\\probal\Profiles\ValakiJanos -display "Valaki Janos" -ln Valaki -fnJanos -pwdneverexpires yes. The command set up everything except one, does not automatically create the user's home directory!The "Active Directory Users and Computers" MMC Snap-in module automatically creates the user home directory! Although this phenomenon could produce Ubuntu Linux 13.10 amd64 + SernetSamba 4.1.5 .smb.conf:
> [global]    workgroup = VALAMI
>      realm = VALAMI.LOCAL
>      netbios name = PROBA2
>      server role = active directory domain controller
>      dns forwarder = X.X.X.X
>      idmap_ldb:use rfc2307 = yes
> [netlogon]
>      path = /var/db/samba4/sysvol/valami.local/scripts
>      read only = no [sysvol]
>      path = /var/db/samba4/sysvol
>      read only = no [home]
>      path = /usr/home
>      read only = no [Profiles]
>      path = /usr/profil
>      read only = no The /usr /home and /usr /profile directories  owned by root:wheel , permissions 0775.
> I've done all settings as described in http://wiki.samba.org/
> included. Sorry for my bad English. Best regards :                           Robert Orosz
Hi, install libpam-modules (if not already installed) and then add this 
line to /etc/pam.d/common-session:

session optional        pam_mkhomedir.so skel=/etc/skel umask=0022

Your users homedirs will then get created when they login to the server.


More information about the samba mailing list