diff options
Diffstat (limited to 'data/live-build-config/hooks/live/21-pam_mkhomedir.chroot')
-rwxr-xr-x | data/live-build-config/hooks/live/21-pam_mkhomedir.chroot | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/data/live-build-config/hooks/live/21-pam_mkhomedir.chroot b/data/live-build-config/hooks/live/21-pam_mkhomedir.chroot new file mode 100755 index 00000000..af155ba4 --- /dev/null +++ b/data/live-build-config/hooks/live/21-pam_mkhomedir.chroot @@ -0,0 +1,16 @@ +#!/bin/sh + +echo I: Create home directory on login. + +cat > /usr/share/pam-configs/mkhomedir <<EOF +Name: Create home directory during login +Default: yes +Priority: 900 +Session-Type: Additional +Session: + required pam_mkhomedir.so umask=0022 skel=/etc/skel +EOF +sync +sed -i '/mkhomedir/d' /var/lib/pam/seen +pam-auth-update --package + |