This commit is contained in:
Patrick Schleizer 2020-11-05 06:39:32 -05:00
parent bb72c1278d
commit 7952139731
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -3,6 +3,10 @@
## Copyright (C) 2019 - 2020 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
## See the file COPYING for copying conditions.
## This is only a usability feature to avoid needlessly bumping pam_tally2
## counter. This is not a security feature.
## https://forums.whonix.org/t/restrict-root-access/7658/1
if ! passwd_output="$(passwd -S "$PAM_USER" 2>/dev/null)" ; then
echo "$0: ERROR: user \"$PAM_USER\" does not exist." >&2
exit 1