mirror of https://github.com/CISOfy/lynis.git
[AUTH-9308] Test for respawn option on SUSE-based systems
This commit is contained in:
parent
c12a4403aa
commit
9451e633da
|
@ -771,8 +771,8 @@
|
||||||
if [ -f /etc/inittab ]; then
|
if [ -f /etc/inittab ]; then
|
||||||
logtext "Result: file /etc/inittab exists"
|
logtext "Result: file /etc/inittab exists"
|
||||||
logtext "Test: checking presence sulogin for single user mode"
|
logtext "Test: checking presence sulogin for single user mode"
|
||||||
FIND=`grep "^~~:S:wait:/sbin/sulogin" /etc/inittab`
|
FIND=`egrep "^~~:S:(respawn|wait):/sbin/sulogin" /etc/inittab`
|
||||||
FIND2=`grep "^su:S:wait:/sbin/sulogin" /etc/inittab`
|
FIND2=`egrep "^su:S:(respawn|wait):/sbin/sulogin" /etc/inittab`
|
||||||
if [ ! "${FIND}" = "" -o ! "${FIND2}" = "" ]; then
|
if [ ! "${FIND}" = "" -o ! "${FIND2}" = "" ]; then
|
||||||
FOUND=1
|
FOUND=1
|
||||||
logtext "Result: found sulogin, so single user is protected"
|
logtext "Result: found sulogin, so single user is protected"
|
||||||
|
|
Loading…
Reference in New Issue