diff --git a/include/tests_authentication b/include/tests_authentication index 7e09effc..c31d4c2d 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -771,8 +771,8 @@ if [ -f /etc/inittab ]; then logtext "Result: file /etc/inittab exists" logtext "Test: checking presence sulogin for single user mode" - FIND=`grep "^~~:S:wait:/sbin/sulogin" /etc/inittab` - FIND2=`grep "^su:S:wait:/sbin/sulogin" /etc/inittab` + FIND=`egrep "^~~:S:(respawn|wait):/sbin/sulogin" /etc/inittab` + FIND2=`egrep "^su:S:(respawn|wait):/sbin/sulogin" /etc/inittab` if [ ! "${FIND}" = "" -o ! "${FIND2}" = "" ]; then FOUND=1 logtext "Result: found sulogin, so single user is protected"