update file permissions