[Samba] home user

L.P.H. van Belle belle at bazuin.nl
Mon Apr 8 09:26:23 UTC 2019

Hai Marco, 

Quickest way: 
By adding one line “session optional pam_mkhomedir.so” to: /etc/pam.d/common-session
Edit /etc/pam.d/common-session, and add this line directly after session required pam_unix.so:
session required    pam_mkhomedir.so skel=/etc/skel/ umask=0022

And the way i would do this is : 
Create/edit :  /usr/share/pam-configs/my_mkhomedir 
Name: Activate mkhomedir
Default: yes
Priority: 900
Session-Type: Additional
        required                        pam_mkhomedir.so umask=0022 skel=/etc/skel

Save, now run : pam-auth-update and enable : Activate mkhomedir.

The priority level make sure its placed before any ldap or kerberos setting. 



> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces at lists.samba.org] Namens 
> marco via samba
> Verzonden: maandag 8 april 2019 11:08
> Aan: samba at lists.samba.org
> Onderwerp: [Samba] home user
> I inserted these directives template shell = /bin/bash and template
> homedir = /home/%U the in smb.conf. What command do you use to create
> the user with the relative home directory and shell?
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/options/samba

More information about the samba mailing list