debugging

This commit is contained in:
Patrick Schleizer 2022-11-24 06:31:24 -05:00
parent 36454c2dbf
commit d05c101721
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48
2 changed files with 9 additions and 4 deletions

View File

@ -18,8 +18,10 @@ if ! command -v "/usr/sbin/faillock" &>/dev/null; then
exit 2
fi
## Debugging.
who_ami="$(whoami)"
true "$0: who_ami: $who_ami"
true "$0: PAM_USER: $PAM_USER"
true "$0: SUDO_USER: $SUDO_USER"
if [ "$SUDO_USER" = "" ]; then

View File

@ -21,14 +21,17 @@ true "$0: START PHASE 2"
set -o pipefail
## Debugging.
who_ami="$(whoami)"
true "$0: who_ami: $who_ami"
true "$0: PAM_USER: $PAM_USER"
true "$0: SUDO_USER: $SUDO_USER"
if [ "$PAM_USER" = "" ]; then
true "$0: ERROR: Environment variable PAM_USER is unset!"
exit 0
fi
## Debugging.
who_ami="$(whoami)"
if ! command -v "/usr/bin/faillock-user" &>/dev/null; then
true "$0: The /usr/bin/faillock-user wrapper is unavailable, exiting."
exit 0