initscript: DB_CONFIG ownership check

This commit is contained in:
Jan Vcelak 2010-11-01 10:56:00 +01:00
parent 96238a3a52
commit 54ef52388e

View File

@ -136,6 +136,12 @@ function configtest() {
fi
fi
fi
if test -f "${dbdir}/DB_CONFIG"; then
if ! testasuser $user -r "${dbdir}/DB_CONFIG"; then
file=DB_CONFIG
echo -n $"$file is not readable by \"$user\"" ; warning ; echo
fi
fi
done
# Unaccessible keytab with an "ldap" key.
if checkkeytab $user ldap ; then