update file permissions.