Sudo troubleshooting

From wikinotes

Sudo waits on Ctrl+C

https://www.reddit.com/r/linuxquestions/comments/sqzctb/sudo_ctrlc_and_ctrld_takes_too_long/

Apparently, Ctrl+C counts as a failed login attempt, and pam may be configured to delay on failed login attempts.

# /etc/pam.d/system-auth

# append 'nodelay' to these lines
auth       required                    pam_faillock.so      preauth nodelay
auth       [default=die]               pam_faillock.so      authfail nodelay