Updates file permissions