> 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="https://361548579-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fb0qbsNvsXjRTsQcNipGM%2Fuploads%2Fgit-blob-979f0346c9b34df06cf7e882a94b4a0ef1f493da%2Fimage.png?alt=media" alt=""><figcaption></figcaption></figure>
