mirror of
https://github.com/ovh/debian-cis.git
synced 2024-11-22 13:37:02 +01:00
enh: 13.12_users_valid_homedir.sh: ignore /nonexistent special home folder
This commit is contained in:
parent
20dacdf6c7
commit
ef5c00fef5
@ -24,7 +24,7 @@ audit () {
|
|||||||
USER=$(awk -F: {'print $1'} <<< $LINE)
|
USER=$(awk -F: {'print $1'} <<< $LINE)
|
||||||
USERID=$(awk -F: {'print $2'} <<< $LINE)
|
USERID=$(awk -F: {'print $2'} <<< $LINE)
|
||||||
DIR=$(awk -F: {'print $3'} <<< $LINE)
|
DIR=$(awk -F: {'print $3'} <<< $LINE)
|
||||||
if [ $USERID -ge 1000 -a ! -d "$DIR" -a $USER != "nfsnobody" -a $USER != "nobody" ]; then
|
if [ $USERID -ge 1000 -a ! -d "$DIR" -a $USER != "nfsnobody" -a $USER != "nobody" -a "$DIR" != "/nonexistent" ]; then
|
||||||
crit "The home directory ($DIR) of user $USER does not exist."
|
crit "The home directory ($DIR) of user $USER does not exist."
|
||||||
ERRORS=$((ERRORS+1))
|
ERRORS=$((ERRORS+1))
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user