mirror of https://github.com/CISOfy/lynis.git
Improved logging
This commit is contained in:
parent
5488c6fc4b
commit
db0ebcd374
|
@ -279,7 +279,7 @@
|
|||
# Arch Linux / CentOS / Ubuntu: 1000+
|
||||
Register --test-no AUTH-9234 --weight L --network NO --category security --description "Query user accounts"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
LogText "Test: Read system users (including root user) from /etc/passwd"
|
||||
LogText "Test: Read system users (including root user) from password database (e.g. /etc/passwd)"
|
||||
FIND=""
|
||||
|
||||
case ${OS} in
|
||||
|
@ -305,7 +305,7 @@
|
|||
;;
|
||||
|
||||
"MacOS")
|
||||
LogText "macOS real users output (ID = 0, or 500-599)"
|
||||
LogText "macOS real users output (ID = 0, or 500-599) using dscacheutil"
|
||||
FIND_USERS=$(dscacheutil -q user | ${GREPBINARY} -A 3 -B 2 -e "^uid: 5[0-9][0-9]" | ${GREPBINARY} "^name: " | ${AWKBINARY} '{print $2}')
|
||||
if [ ! -z "${FIND_USERS}" ]; then
|
||||
for FUSERNAME in ${FIND_USERS}; do
|
||||
|
|
Loading…
Reference in New Issue