how to set permissions to directory in ubuntu to current user code example Example: linux give permission to folder sudo chmod -R a+rwx /path/to/folder