updates file permissions