how to set a permission for a directtory to dr------- in linux mint code example Example: how to change permissions on a file in linux sudo chmod -R ugo+rwx /file/path