set directory and file ownership permissions