aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni@mandriva.org>2010-02-09 20:31:15 +0000
committerEugeni Dodonov <eugeni@mandriva.org>2010-02-09 20:31:15 +0000
commiteed813b2d1726b5b1022de8ff90ccb5f49d3f3f4 (patch)
tree4c4c8274d86c394e2134694f2983a8405d387d15
parent62dc7588285ad9c4fd3d619587639640f7789550 (diff)
downloadmsec-eed813b2d1726b5b1022de8ff90ccb5f49d3f3f4.tar
msec-eed813b2d1726b5b1022de8ff90ccb5f49d3f3f4.tar.gz
msec-eed813b2d1726b5b1022de8ff90ccb5f49d3f3f4.tar.bz2
msec-eed813b2d1726b5b1022de8ff90ccb5f49d3f3f4.tar.xz
msec-eed813b2d1726b5b1022de8ff90ccb5f49d3f3f4.zip
xguest user does not has password, so ignore it
-rwxr-xr-xcron-sh/scripts/05_access.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/cron-sh/scripts/05_access.sh b/cron-sh/scripts/05_access.sh
index 033aa6b..4fe5d82 100755
--- a/cron-sh/scripts/05_access.sh
+++ b/cron-sh/scripts/05_access.sh
@@ -65,7 +65,7 @@ fi
### Shadow password file Check
if check_is_enabled "${CHECK_SHADOW}" ; then
awk -F: '{
- if ( $2 == "" )
+ if ( $2 == "" && $1 != "xguest" )
printf("\t\t- /etc/shadow:%d: User \"%s\" has no password !\n", FNR, $1);
}' < /etc/shadow > ${MSEC_TMP}
Filter ${MSEC_TMP} CHECK_SHADOW