check if setting global is defined
set file permissions