mirror of https://github.com/CISOfy/lynis.git
Starting user ID 1000 for Linux systems
This commit is contained in:
parent
1fa4416a7a
commit
8efbb80497
|
@ -5,8 +5,8 @@
|
|||
# Lynis
|
||||
# ------------------
|
||||
#
|
||||
# Copyright 2007-2014, Michael Boelen (michael@rootkit.nl), The Netherlands
|
||||
# Web site: http://www.rootkit.nl
|
||||
# Copyright 2007-2015, Michael Boelen, CISOfy (michael.boelen@cisofy.com)
|
||||
# Web site: https://cisofy.com
|
||||
#
|
||||
# Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
|
||||
# welcome to redistribute it under the terms of the GNU General Public License.
|
||||
|
@ -338,6 +338,7 @@
|
|||
# Notes : HPUX > 100
|
||||
# MacOS: need to be improved (just reading passwd file is not enough)
|
||||
# OpenBSD/NetBSD: unknown
|
||||
# Arch Linux / CentOS / Ubuntu: 1000+
|
||||
Register --test-no AUTH-9234 --os Linux --weight L --network NO --description "Query user accounts"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
logtext "Test: Read system users (including root user) from /etc/passwd"
|
||||
|
@ -351,7 +352,7 @@
|
|||
|
||||
"Linux")
|
||||
logtext "Linux real users output (ID = 0, or 500+, but not 65534):"
|
||||
FIND=`awk -F: '($3 >= 500) && ($3 != 65534) || ($3 == 0) { print $1","$3 }' /etc/passwd`
|
||||
FIND=`awk -F: '($3 >= 1000) && ($3 != 65534) || ($3 == 0) { print $1","$3 }' /etc/passwd`
|
||||
;;
|
||||
|
||||
"Solaris")
|
||||
|
@ -1328,4 +1329,4 @@ wait_for_keypress
|
|||
|
||||
#
|
||||
#================================================================================
|
||||
# Lynis - Copyright 2007-2014, Michael Boelen - www.rootkit.nl - The Netherlands
|
||||
# Lynis - Copyright 2007-2015 Michael Boelen, CISOfy - https://cisofy.com
|
||||
|
|
Loading…
Reference in New Issue