From cf038970495d0447a4f83d14915b10516bec8f9c Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 29 Feb 2012 11:32:10 +0100 Subject: [PATCH 1/1] pam: Enable pam_mkhomedir for sshd and login. Note that we don't enable pam_mkhomedir in common-session, since there might be users (using the maroesjaSystemIdentity objectclass) that cannot login and do not need a regular homedir. --- etc/pam.d/common-session | 2 -- etc/pam.d/login | 2 ++ etc/pam.d/sshd | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/etc/pam.d/common-session b/etc/pam.d/common-session index 8f4eaa6..be1fadd 100644 --- a/etc/pam.d/common-session +++ b/etc/pam.d/common-session @@ -14,5 +14,3 @@ session required pam_ldap.so # Load locale variables session required pam_env.so envfile=/etc/default/locale - -#session required pam_mkhomedir.so skel=/etc/skel umask=0022 diff --git a/etc/pam.d/login b/etc/pam.d/login index 7f15a0f..cc6c2f0 100644 --- a/etc/pam.d/login +++ b/etc/pam.d/login @@ -13,6 +13,8 @@ # Print the message of the day upon successful login. session optional pam_motd.so # [1] +# Create a homedir for the user, if there is none yet. +session optional pam_mkhomedir.so # Standard Un*x password updating (not sure if login actually uses this, but # well...) diff --git a/etc/pam.d/sshd b/etc/pam.d/sshd index adf7c8a..ecb400c 100644 --- a/etc/pam.d/sshd +++ b/etc/pam.d/sshd @@ -11,7 +11,8 @@ # Print the message of the day upon successful login. session optional pam_motd.so -session required pam_permit.so +# Create a homedir for the user, if there is none yet. +session optional pam_mkhomedir.so # Standard Un*x password updating (not sure if OpenSSH actually uses this, but # well...) -- 2.30.2