From 252c140ac06caa54d78307154b4103b477290dd2 Mon Sep 17 00:00:00 2001 From: "YiLin.Li" Date: Wed, 8 Nov 2023 10:07:59 +0800 Subject: [PATCH] scanners/access-and-control/1.40-ensure-access-to-the-su-command-is-restricted.sh: Fix regular errors Fixes: #I8EPVI Signed-off-by: YiLin.Li --- .../1.40-ensure-access-to-the-su-command-is-restricted.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scanners/access-and-control/1.40-ensure-access-to-the-su-command-is-restricted.sh b/scanners/access-and-control/1.40-ensure-access-to-the-su-command-is-restricted.sh index cb5614d..701f97a 100644 --- a/scanners/access-and-control/1.40-ensure-access-to-the-su-command-is-restricted.sh +++ b/scanners/access-and-control/1.40-ensure-access-to-the-su-command-is-restricted.sh @@ -1,9 +1,9 @@ result=false -grep -Eiq "^\s*auth\s+required\s+pam_wheel.so(\s+\S+)*\s+use_uid(\s+\S+)*\s*(\s+#.*)?$" /etc/pam.d/su && grep -Eiq "^wheel:x:10:$" /etc/group && result=true +grep -Eiq "^\s*auth\s+required\s+pam_wheel.so(\s+\S+)*\s+use_uid(\s+\S+)*\s*(\s+#.*)?$" /etc/pam.d/su && grep -Eiq "^wheel:x:10:" /etc/group && result=true if [[ $result == true ]]; then echo "pass" else echo "fail" -fi \ No newline at end of file +fi -- Gitee