/usr/share/ltsp/plugins/ltsp-build-client/ALTLinux/100-etc-passwdqc is in ltsp-server 5.4.2-6+deb7u1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | case "$MODE" in
after-install)
if [ -f "$ROOT"/etc/passwdqc.conf ]; then
cp --preserve=mode,ownership "$ROOT"/etc/passwdqc.conf "$ROOT"/etc/passwdqc.conf.ltspsave
sed -i -r \
-e 's/^min=.*$/min=1,1,1,1,1/' \
-e 's/^(passphrase=).*$/\11/' \
-e 's/^(match=).*$/\10/' \
"$ROOT"/etc/passwdqc.conf
else
cat > "$ROOT"/etc/passwdqc.conf <<EOF
min=1,1,1,1,1
passphrase=1
match=0
EOF
fi
;;
finalization)
[ -f "$ROOT"/etc/passwdqc.conf.ltspsave ] && mv -f "$ROOT"/etc/passwdqc.conf{.ltspsave,} || rm -f "$ROOT"/etc/passwdqc.conf
;;
esac
|