Márcio Merlone
2014-Jan-16 16:45 UTC
[Samba] User folder automatic creation - should use skel, but no
Hi, I am testing Samba 4.1.4 Sernet packages on Ubuntu 12.04 to replace our old Samba 3.x server. I edited pam common-session file and added '<https://wiki.samba.org/index.php/Setting_up_a_home_share>session required pam_mkhomedir.so skel=/etc/skel/ umask=0027' just before pam_unix.so and pam_sss.so. If I shell-login on the server it create its homedir as expected using /etc/skel with the correct umask. But when I login on Windows it creates its homedir and profile folder without copying /etc/skel nor honoring umask. I assume Samba is creating the user's folder /before/ pam, and thus not using skel, is this correct? What's wrong and how can I fix this? Best regards. -- *Marcio Merlone* TI - Administrador de redes *A1 Engenharia - Unidade Corporativa* Fone: +55 41 3616-3797 Cel: +55 41 9689-0036 http://www.a1.ind.br/ <http://www.a1.ind.br>
Sven Schwedas
2014-Jan-17 07:48 UTC
[Samba] User folder automatic creation - should use skel, but no
Windows logon is completely separate from Unix logon and does not use PAM at all. So yes, it's done by samba itself. On 2014-01-16 17:45, M?rcio Merlone wrote:> Hi, > > I am testing Samba 4.1.4 Sernet packages on Ubuntu 12.04 to replace our > old Samba 3.x server. I edited pam common-session file and added > '<https://wiki.samba.org/index.php/Setting_up_a_home_share>session > required pam_mkhomedir.so skel=/etc/skel/ umask=0027' just before > pam_unix.so and pam_sss.so. If I shell-login on the server it create its > homedir as expected using /etc/skel with the correct umask. But when I > login on Windows it creates its homedir and profile folder without > copying /etc/skel nor honoring umask. > > I assume Samba is creating the user's folder /before/ pam, and thus not > using skel, is this correct? What's wrong and how can I fix this? > > Best regards. >-- Mit freundlichen Gr??en, / Best Regards, Sven Schwedas Systemadministrator TAO Beratungs- und Management GmbH | Lendplatz 45 | A - 8020 Graz Mail/XMPP: sven.schwedas at tao.at | +43 (0)680 301 7167 http://software.tao.at -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 665 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20140117/66b55575/attachment.pgp>
Reasonably Related Threads
- AD domain member with sssd: any downside not running winbindd?
- Samba 4.1.4 sernet packages on Ubuntu 12.04.3
- Manage unix users from AD
- Skel VFS module crashes smbd when we have no ACL support in samba v2.2.9.
- Change system-wide default configuration for FF and OO with /etc/skel