> For the complete documentation index, see [llms.txt](https://www.netexec.wiki/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.netexec.wiki/nfs-protocol/chmod.md).

# Chmod

{% hint style="info" %}
For `` `--chmod` `` you need to specify the export share with `--share` if you do not want to use the root fs escape method (see [escape to root file system](/nfs-protocol/escape-to-root-file-system.md)).
{% endhint %}

Files in NetExec are uploaded with \`777\` permissions by default. To change these permissions you can use the \`--chmod\` flag:

<figure><img src="/files/xIFXAVyDm2qCIwuZWVnf" alt=""><figcaption></figcaption></figure>
