[AUTH-9308] Test for respawn option on SUSE-based systems

This commit is contained in:
mboelen 2015-12-21 15:17:25 +01:00
parent c12a4403aa
commit 9451e633da
1 changed files with 2 additions and 2 deletions

View File

@ -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"