[Samba] Auto Create user home directory

Ed Plese ed at edplese.com
Tue Jan 16 03:06:48 GMT 2007

On Mon, Jan 15, 2007 at 12:11:29PM -0500, M Azer wrote:
> now that all permissions are right - if i create a new user on the win 2003
> active directory and specify a home user under profile i will get " the home
> folder could not be created because: the network name cannot be found" I
> know for sure I am getting that error because the user home folder doesn't
> exist yet on the samba machine - is there any way to get the user home
> created automatically once a new user are added to active directory.
> Note: If the new user log in the linux terminal the home user will be
> created automatically because i am using session required
> /lib/security/$ISA/pam_mkhomedir.so skel=/etc/skel umask=0077
> in my pam.d/system_auth. how do i get the same thing working when i create a
> user with active directory.

You might try adding the following to your smb.conf file:

  obey pam restrictions = yes

Ed Plese

More information about the samba mailing list