# 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>
