This commit is contained in:
Patrick Schleizer 2025-12-08 09:42:59 -05:00
parent 8f99672cb2
commit b7b6b6e5fb
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 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.'