Web lists-archives.com

Re: [Samba] home user




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 
Add: 
Name: Activate mkhomedir
Default: yes
Priority: 900
Session-Type: Additional
Session:
        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. 


Greetz, 

Louis


> -----Oorspronkelijk bericht-----
> Van: samba [mailto:samba-bounces@xxxxxxxxxxxxxxx] Namens 
> marco via samba
> Verzonden: maandag 8 april 2019 11:08
> Aan: samba@xxxxxxxxxxxxxxx
> 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
> 


-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba