mirror of https://github.com/CISOfy/lynis.git
[AUTH-9308] Test for tilde in inittab for Debian systems
This commit is contained in:
parent
5668f7bed1
commit
9cf25723e0
|
@ -905,7 +905,7 @@
|
|||
TEST_PERFORMED=1
|
||||
LogText "Result: file /etc/inittab exists"
|
||||
LogText "Test: checking presence sulogin for single user mode"
|
||||
FIND=$(${EGREPBINARY} "^[a-zA-Z0-9]+:S:(respawn|wait):/sbin/sulogin" /etc/inittab)
|
||||
FIND=$(${EGREPBINARY} "^[a-zA-Z0-9~]+:S:(respawn|wait):/sbin/sulogin" /etc/inittab)
|
||||
FIND2=$(${EGREPBINARY} "^su:S:(respawn|wait):/sbin/sulogin" /etc/inittab)
|
||||
if [ ! -z "${FIND}" -o ! -z "${FIND2}" ]; then
|
||||
FOUND=1
|
||||
|
|
Loading…
Reference in New Issue