how to enable read write permission for a directory and sub directory ubuntu code example Example: how to change permissions on a file in linux sudo chmod -R ugo+rwx /file/path