> 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/smb-protocol/generate-krb5.conf-file.md).

# Generate krb5.conf file

```
netexec smb ip -u user -p password --generate-krb5-file /path
export KRB5_CONFIG=/path
```

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