give read/write permission to a folder in linux to a user octal method code example Example: how to change permissions on a file in linux sudo chmod -R ugo+rwx /file/path