mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-27 15:54:09 +02:00
Starting user ID 1000 for Linux systems
This commit is contained in:
parent
1fa4416a7a
commit
8efbb80497
@ -5,8 +5,8 @@
|
|||||||
# Lynis
|
# Lynis
|
||||||
# ------------------
|
# ------------------
|
||||||
#
|
#
|
||||||
# Copyright 2007-2014, Michael Boelen (michael@rootkit.nl), The Netherlands
|
# Copyright 2007-2015, Michael Boelen, CISOfy (michael.boelen@cisofy.com)
|
||||||
# Web site: http://www.rootkit.nl
|
# Web site: https://cisofy.com
|
||||||
#
|
#
|
||||||
# Lynis comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
|
# 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.
|
# welcome to redistribute it under the terms of the GNU General Public License.
|
||||||
@ -338,6 +338,7 @@
|
|||||||
# Notes : HPUX > 100
|
# Notes : HPUX > 100
|
||||||
# MacOS: need to be improved (just reading passwd file is not enough)
|
# MacOS: need to be improved (just reading passwd file is not enough)
|
||||||
# OpenBSD/NetBSD: unknown
|
# OpenBSD/NetBSD: unknown
|
||||||
|
# Arch Linux / CentOS / Ubuntu: 1000+
|
||||||
Register --test-no AUTH-9234 --os Linux --weight L --network NO --description "Query user accounts"
|
Register --test-no AUTH-9234 --os Linux --weight L --network NO --description "Query user accounts"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
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 /etc/passwd"
|
||||||
@ -351,7 +352,7 @@
|
|||||||
|
|
||||||
"Linux")
|
"Linux")
|
||||||
logtext "Linux real users output (ID = 0, or 500+, but not 65534):"
|
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")
|
"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…
x
Reference in New Issue
Block a user