This commit is contained in:
Patrick Schleizer 2025-12-19 06:27:14 -05:00
parent 55a9755d90
commit 8aef71c254
No known key found for this signature in database
GPG key ID: CB8D50BB77BB3C48

View file

@ -36,7 +36,7 @@ fi
if [[ "$kernel_cmdline" =~ 'boot-role=sysmaint' ]]; then
true "INFO: session type: sysmaint session"
if [ "$PAM_USER" != 'sysmaint' ]; then
printf '%s\n' 'ERROR: Rejecting non-sysmaint account '$PAM_USER' in sysmaint session!'
printf '%s\n' "ERROR: Rejecting non-sysmaint account '$PAM_USER' in sysmaint session!"
exit 1
fi
true 'INFO: Running in sysmaint session and authenticating as sysmaint account, allowing authentication to proceed.'