Add script to check file permissions