/usr/share/ltsp/plugins/ltsp-build-client/ALTLinux/095-rootpass is in ltsp-server 5.5.7-1.
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 | case "$MODE" in
commandline)
add_option "prompt-rootpass" "`eval_gettext "prompt to set the root password, defaults to disabled"`" "advanced" "false"
;;
configure)
if [ -n "$option_prompt_rootpass_value" ]; then
ROOTPASS=prompt
fi
;;
after-install)
# Root password is empty by default, lock it
/usr/sbin/chroot $ROOT passwd -l root
;;
finalization)
if [ "$ROOTPASS" = "prompt" ]; then
# prompt for root password
/usr/sbin/chroot $ROOT passwd root 2>&1
fi
;;
esac
|