mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-11-26 00:28:28 -05:00
output
This commit is contained in:
parent
f2b7658542
commit
ae1e2e3b52
1 changed files with 3 additions and 3 deletions
|
|
@ -22,10 +22,10 @@ fi
|
||||||
|
|
||||||
if [[ "$kernel_cmdline" =~ 'boot-role=sysmaint' ]]; then
|
if [[ "$kernel_cmdline" =~ 'boot-role=sysmaint' ]]; then
|
||||||
if [ "$PAM_USER" != 'sysmaint' ]; then
|
if [ "$PAM_USER" != 'sysmaint' ]; then
|
||||||
printf '%s\n' 'ERROR: Rejecting non-sysmaint account in sysmaint mode!'
|
printf '%s\n' 'ERROR: Rejecting non-sysmaint account in sysmaint session!'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
true 'INFO: Running in sysmaint mode and logging into sysmaint account, allowing authentication to proceed.'
|
true 'INFO: Running in sysmaint session and logging into sysmaint account, allowing authentication to proceed.'
|
||||||
exit 0
|
exit 0
|
||||||
else
|
else
|
||||||
if ! output="$(/usr/libexec/helper-scripts/get-user-list)"; then
|
if ! output="$(/usr/libexec/helper-scripts/get-user-list)"; then
|
||||||
|
|
@ -56,7 +56,7 @@ else
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$PAM_USER" = 'sysmaint' ]; then
|
if [ "$PAM_USER" = 'sysmaint' ]; then
|
||||||
printf '%s\n' 'ERROR: Rejecting sysmaint account in user mode!'
|
printf '%s\n' 'ERROR: Rejecting sysmaint account in user session!'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue