mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-01-24 18:15:32 +07:00
debugging
This commit is contained in:
parent
36454c2dbf
commit
d05c101721
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user