diff options
author | mboelen <michael@cisofy.com> | 2015-12-21 17:17:25 +0300 |
---|---|---|
committer | mboelen <michael@cisofy.com> | 2015-12-21 17:17:25 +0300 |
commit | 9451e633da75e2057831fa59c2208f738cce9f3d (patch) | |
tree | f89387685223c9a298c7881bfffa4b89ebdf7295 /include/tests_authentication | |
parent | c12a4403aad9fe89d8d9eaf0cace3d769a614445 (diff) |
[AUTH-9308] Test for respawn option on SUSE-based systems
Diffstat (limited to 'include/tests_authentication')
-rw-r--r-- | include/tests_authentication | 4 |
1 files changed, 2 insertions, 2 deletions
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" |