Setting file ownership and permissions.