Also facing this issue, it's weird that newer pam-auth-update also ignores default option in pam configs. So now it's not possible to non-interactively enable new profile (but it was working in trusty).
Here's updated script to add one profile (mkhomedir) to current set of profiles:
Also facing this issue, it's weird that newer pam-auth-update also ignores default option in pam configs. So now it's not possible to non-interactively enable new profile (but it was working in trusty).
Here's updated script to add one profile (mkhomedir) to current set of profiles:
#!/bin/sh
PROFILES= $(debconf- get-selections | grep libpam- runtime/ profiles | cut -d ' ' -f 2- | sed s/\,\ mkhomedir//g) "${PROFILES} , mkhomedir"
PROFILES=
for profile in /usr/share/ pam-configs/ *; do name=$( grep Name: $profile | cut -d ' ' -f 2-) ,"${profile_ name}", g)
profile_
PROFILES=$(echo $PROFILES | sed s,$(basename $profile)
done
cat > $1 <<EOF runtime/ profiles= "${PROFILES} "
libpam-
EOF