mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-16 22:22:13 -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
1 changed files with 15 additions and 4 deletions
|
@ -3,10 +3,21 @@
|
||||||
## Copyright (C) 2019 - 2022 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
## Copyright (C) 2019 - 2022 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
||||||
## See the file COPYING for copying conditions.
|
## See the file COPYING for copying conditions.
|
||||||
|
|
||||||
#set -x
|
## To enable debug log, run:
|
||||||
#exec 5>&1 1>> ~/pam-info-debug.txt
|
## /etc/pam-info-debug
|
||||||
#exec 6>&2 2>> ~/pam-info-debug.txt
|
##
|
||||||
true "$0: START"
|
## 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)"
|
grep_result="$(grep "accessfile=/etc/security/access-security-misc.conf" /etc/pam.d/common-account 2>/dev/null)"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue