Add configuration option for enforcing file permissions [tracker #1596]