diff --git a/usr/bin/faillock-user b/usr/bin/faillock-user index ffe1988..e8cf697 100755 --- a/usr/bin/faillock-user +++ b/usr/bin/faillock-user @@ -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 diff --git a/usr/libexec/security-misc/pam-info b/usr/libexec/security-misc/pam-info index 0210634..ab5f85f 100755 --- a/usr/libexec/security-misc/pam-info +++ b/usr/libexec/security-misc/pam-info @@ -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