[Samba] Winbind. making home directory on the fly

Buchan Milne bgmilne at cae.co.za
Mon Apr 28 19:57:56 GMT 2003

> Date: Mon, 28 Apr 2003 12:29:13 +1000
> From: Peter Milburn <peterm at sportodds.com>
> To: "Samba (E-mail)" <samba at lists.samba.org>
> Subject: [Samba] Winbind. making home directory on the fly
> Message-ID: <18A6CE21402F9D438224021B77CDC1E97D8DAF at HPKEXG1>
> Content-Type: text/plain;
>         charset="iso-8859-1"
> MIME-Version: 1.0
> Precedence: list
> Message: 19
> I have an issue where samba/winbind is not creating the home diretcory 
> on the fly,
> Is there anything I need to do other than have the line
> template homedir = /home/%D/%U ?

That just defines what the home directory will be. If you want to have 
home directories made for you, use pam_mkhomedir.so either in your stack 
(ie system-auth) or in the service you want to allow to make home 

Look in packaging/Mandrake/system-auth-winbind.pamd in the source dist for 
an example (on Mandrake you can copy this file over 
/etc/pam.d/system-auth, for RH you may have to make adjustments).

Done for you if you choose "Windows Domain" authentication in Mandrake 9.0 
or 9.1


|----------------Registered Linux User #182071-----------------|
Buchan Milne                Mechanical Engineer, Network Manager
Cellphone * Work            +27 82 472 2231 * +27 21 8828820x121
Stellenbosch Automotive Engineering         http://www.cae.co.za
GPG Key                   http://ranger.dnsalias.com/bgmilne.asc
1024D/60D204A7 2919 E232 5610 A038 87B1 72D6 AC92 BA50 60D2 04A7

More information about the samba mailing list