diff --git a/include/tests_authentication b/include/tests_authentication index d4e9463b..dd48d80c 100644 --- a/include/tests_authentication +++ b/include/tests_authentication @@ -31,11 +31,12 @@ # Test : AUTH-9204 # Description : Check users with UID zero (0) + # Notes : Ignores :0: in file if match is in NIS related line Register --test-no AUTH-9204 --weight L --network NO --description "Check users with an UID of zero" if [ ${SKIPTEST} -eq 0 ]; then # Search accounts with UID 0 logtext "Test: Searching accounts with UID 0" - FIND=`grep ':0:' /etc/passwd | egrep -v '^#|^root:|^:0:0:::' | cut -d ":" -f1,3 | grep ':0'` + FIND=`grep ':0:' /etc/passwd | egrep -v '^#|^root:|^(\+:\*)?:0:0:::' | cut -d ":" -f1,3 | grep ':0'` if [ ! "${FIND}" = "" ]; then Display --indent 2 --text "- Search administrator accounts" --result WARNING --color RED logtext "Result: Found more than one administrator accounts"