Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CISOfy/lynis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boelen <michael.boelen@cisofy.com>2017-02-28 22:18:47 +0300
committerMichael Boelen <michael.boelen@cisofy.com>2017-02-28 22:18:47 +0300
commit9cf25723e0f596ef7854fbea8cbff1e3ac10431d (patch)
treee58996ac3421911d214956d78f4ceb4f705ffeb2
parent5668f7bed1c43e93b6f526ccfe2b2d6002412922 (diff)
[AUTH-9308] Test for tilde in inittab for Debian systems
-rw-r--r--include/tests_authentication2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_authentication b/include/tests_authentication
index 2bc48074..5077e408 100644
--- a/include/tests_authentication
+++ b/include/tests_authentication
@@ -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