Add action to take when a file has not the right permissions

This commit is contained in:
Michael Boelen 2016-05-02 17:13:06 +02:00
parent c806c59f77
commit efebb99da1
1 changed files with 1 additions and 1 deletions

View File

@ -1872,7 +1872,7 @@
# Other permissions
OTHER_PERMS=`echo ${PERMS} | cut -c8-10`
if [ ! "${OTHER_PERMS}" = "---" -a ! "${OTHER_PERMS}" = "r--" ]; then
echo "Fatal error: permissions of file $1 are not strict enough. Access to 'other' should be denied or read-only."
echo "Fatal error: permissions of file $1 are not strict enough. Access to 'other' should be denied or read-only. Change with: chmod 600 $1"
ExitFatal
fi
# Set PERMS_OK to 1 if no fatal errors occurred