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.
# Load locale variables
session required pam_env.so envfile=/etc/default/locale
-
-#session required pam_mkhomedir.so skel=/etc/skel umask=0022
# 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...)
# 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...)