Update changelog

This commit is contained in:
Thibault Ayanides
2020-12-14 16:56:09 +01:00
parent f4ba90352b
commit 3560f67e3f
3 changed files with 21 additions and 5 deletions

View File

@ -21,8 +21,8 @@ ERRORS=0
# This function will be called if the script status is on enabled / audit mode
audit() {
for GROUP in $(cut -s -d: -f4 /etc/passwd | sort -u); do
RESULT=$(cut -s -d: -f4 /etc/passwd | sort -u)
for GROUP in $RESULT; do
debug "Working on group $GROUP"
if ! grep -q -P "^.*?:[^:]*:$GROUP:" /etc/group; then
crit "Group $GROUP is referenced by /etc/passwd but does not exist in /etc/group"