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:
authorBrian Ginsbach <brian.ginsbach@gmail.com>2020-04-02 22:37:31 +0300
committerBrian Ginsbach <brian.ginsbach@gmail.com>2020-04-03 04:09:15 +0300
commit50a60fed876d13cecb9c61d18d8b7ead93a88043 (patch)
treee1d65b89007b125e74e79d0d810ad3352cbb04de
parent6308682caee9a060e9915c8b85be36ef015ced7c (diff)
AUTH-9218 add requires root
The `/etc/master.passwd` file on BSD systems is (or should be) read/write root only. Skip the test if not being run as root.
-rw-r--r--include/tests_authentication2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/tests_authentication b/include/tests_authentication
index 74389ad8..8099eb0c 100644
--- a/include/tests_authentication
+++ b/include/tests_authentication
@@ -157,7 +157,7 @@
# Test : AUTH-9218
# Description : Check login shells for passwordless accounts
# Notes : Results should be checked
- Register --test-no AUTH-9218 --os "DragonFly FreeBSD" --weight L --network NO --category security --description "Check login shells for passwordless accounts"
+ Register --test-no AUTH-9218 --os "DragonFly FreeBSD" --root-only YES --weight L --network NO --category security --description "Check login shells for passwordless accounts"
if [ ${SKIPTEST} -eq 0 ]; then
FOUND=0
LogText "Test: Checking login shells"