update faillock (#3)

This commit is contained in:
Laila van Reenen 2024-11-29 18:31:00 +01:00
parent 07a60c5cd4
commit b587e46526

View File

@ -167,6 +167,7 @@ run-chroot "set password for user" "echo \"${USERNAME}:$PASS\" | chpasswd"
run-chroot "add user to sudoers" "echo \"%admin ALL=(ALL:ALL) ALL\" >>/etc/sudoers" run-chroot "add user to sudoers" "echo \"%admin ALL=(ALL:ALL) ALL\" >>/etc/sudoers"
run-chroot "touch authoized keys" "touch /home/${USERNAME}/.ssh/authorized_keys" run-chroot "touch authoized keys" "touch /home/${USERNAME}/.ssh/authorized_keys"
run-chroot "add sshkeys for new user" "curl -o /home/${USERNAME}/.ssh/authorized_keys https://github.com/FReenen.keys" run-chroot "add sshkeys for new user" "curl -o /home/${USERNAME}/.ssh/authorized_keys https://github.com/FReenen.keys"
run-chroot "update fail lock" "sed --in-place -e 's/^deny = .*$/deny = 10/' -e 's/^unlock_time = .*$/unlock_time = 60/'"
echo echo
echo === umount and reboot echo === umount and reboot