mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-28 02:09:23 -05:00
comment
This commit is contained in:
parent
dc1dfc8c20
commit
9ba84f34c6
@ -45,6 +45,22 @@ if [ ! "$(id -u)" = "0" ]; then
|
|||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
## Does not work (yet) for login, pam_securetty runs before and aborts.
|
||||||
|
## Also this should only run for login since securetty covers only login.
|
||||||
|
# if [ "$PAM_USER" = "root" ]; then
|
||||||
|
# if [ -f /etc/securetty ]; then
|
||||||
|
# grep_result="$(grep "^[^#]" /etc/securetty)"
|
||||||
|
# if [ "$grep_result" = "" ]; then
|
||||||
|
# echo "$0: ERROR: Root login is disabled." >&2
|
||||||
|
# echo "$0: ERROR: This is because /etc/securetty is empty." >&2
|
||||||
|
# echo "$0: See also:" >&2
|
||||||
|
# echo "https://www.whonix.org/wiki/root#login" >&2
|
||||||
|
# echo "" >&2
|
||||||
|
# exit 0
|
||||||
|
# fi
|
||||||
|
# fi
|
||||||
|
# fi
|
||||||
|
|
||||||
pam_tally2_output="$(pam_tally2 --user "$PAM_USER")"
|
pam_tally2_output="$(pam_tally2 --user "$PAM_USER")"
|
||||||
|
|
||||||
if [ "$pam_tally2_output" = "" ]; then
|
if [ "$pam_tally2_output" = "" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user