mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-02-04 14:35:22 -05: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
|
exit 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## Debugging.
|
||||||
who_ami="$(whoami)"
|
who_ami="$(whoami)"
|
||||||
|
true "$0: who_ami: $who_ami"
|
||||||
|
true "$0: PAM_USER: $PAM_USER"
|
||||||
true "$0: SUDO_USER: $SUDO_USER"
|
true "$0: SUDO_USER: $SUDO_USER"
|
||||||
|
|
||||||
if [ "$SUDO_USER" = "" ]; then
|
if [ "$SUDO_USER" = "" ]; then
|
||||||
|
@ -21,14 +21,17 @@ true "$0: START PHASE 2"
|
|||||||
|
|
||||||
set -o pipefail
|
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
|
if [ "$PAM_USER" = "" ]; then
|
||||||
true "$0: ERROR: Environment variable PAM_USER is unset!"
|
true "$0: ERROR: Environment variable PAM_USER is unset!"
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## Debugging.
|
|
||||||
who_ami="$(whoami)"
|
|
||||||
|
|
||||||
if ! command -v "/usr/bin/faillock-user" &>/dev/null; then
|
if ! command -v "/usr/bin/faillock-user" &>/dev/null; then
|
||||||
true "$0: The /usr/bin/faillock-user wrapper is unavailable, exiting."
|
true "$0: The /usr/bin/faillock-user wrapper is unavailable, exiting."
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user