From 175b442d5bb9dfcb4e9b524ec2077e72c74598cc Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Thu, 19 Dec 2024 05:56:50 -0500 Subject: [PATCH] use long option name --- usr/libexec/security-misc/pam-info | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/libexec/security-misc/pam-info b/usr/libexec/security-misc/pam-info index adde5bc..382e2ac 100755 --- a/usr/libexec/security-misc/pam-info +++ b/usr/libexec/security-misc/pam-info @@ -73,7 +73,7 @@ https://www.kicksecure.com/wiki/root#console fi if [ "$PAM_USER" = 'sysmaint' ]; then - sysmaint_passwd_info="$(passwd -S sysmaint 2>/dev/null)" || true + sysmaint_passwd_info="$(passwd --status sysmaint 2>/dev/null)" || true sysmaint_lock_info="$(cut -d' ' -f2 <<< "${sysmaint_passwd_info}")" if [ "${sysmaint_lock_info}" = 'L' ]; then echo "$0: ERROR: Reboot and choose 'PERSISTENT mode SYSMAINT' for system maintenance. See https://www.kicksecure.com/wiki/sysmaint"