mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-30 01:04:39 +02:00
Merge pull request #38 from aneeshusa/update-systemd-sulogin-detection
Update check for sulogin under systemd.
This commit is contained in:
commit
6694add635
@ -702,7 +702,7 @@
|
|||||||
if [ -f /usr/lib/systemd/system/rescue.service ]; then
|
if [ -f /usr/lib/systemd/system/rescue.service ]; then
|
||||||
logtext "Result: file /usr/lib/systemd/system/rescue.service"
|
logtext "Result: file /usr/lib/systemd/system/rescue.service"
|
||||||
logtext "Test: checking presence sulogin for single user mode"
|
logtext "Test: checking presence sulogin for single user mode"
|
||||||
FIND=`egrep "^ExecStart=-(/usr)?/sbin/sulogin" /usr/lib/systemd/system/rescue.service`
|
FIND=`egrep "^ExecStart=-(/bin/sh -c \")?(/usr)?/(s)?bin/sulogin" /usr/lib/systemd/system/rescue.service`
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ! "${FIND}" = "" ]; then
|
||||||
FOUND=1
|
FOUND=1
|
||||||
logtext "Result: found sulogin, so single user is protected"
|
logtext "Result: found sulogin, so single user is protected"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user