mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
pam-info: create debug log file ~/pam-info-debug.txt
when file /etc/pam-info-debug exists
This commit is contained in:
parent
2872c2ab52
commit
95487346db
@ -3,10 +3,21 @@
|
||||
## Copyright (C) 2019 - 2022 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
||||
## See the file COPYING for copying conditions.
|
||||
|
||||
#set -x
|
||||
#exec 5>&1 1>> ~/pam-info-debug.txt
|
||||
#exec 6>&2 2>> ~/pam-info-debug.txt
|
||||
true "$0: START"
|
||||
## To enable debug log, run:
|
||||
## /etc/pam-info-debug
|
||||
##
|
||||
## Debug log if enabled can be found in file:
|
||||
## /root/pam-info-debug.txt
|
||||
|
||||
true "$0: START PHASE 1"
|
||||
|
||||
if test -f /etc/pam-info-debug ; then
|
||||
set -x
|
||||
exec 5>&1 1>> ~/pam-info-debug.txt
|
||||
exec 6>&2 2>> ~/pam-info-debug.txt
|
||||
fi
|
||||
|
||||
true "$0: START PHASE 2"
|
||||
|
||||
grep_result="$(grep "accessfile=/etc/security/access-security-misc.conf" /etc/pam.d/common-account 2>/dev/null)"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user