summaryrefslogtreecommitdiff
path: root/data/live-build-config/hooks/live/21-pam_mkhomedir.chroot
blob: af155ba41d05dc4e52b850d9112fdf0a491f700f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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