Thanks for getting back. Noticing a couple of things about your pasted output:
- Did you run the first set of commands in a root session? This is necessary because the user needs to be able to read the `/var/run/adsys/krb5cc/$(hostname)` file. You can confirm this by trying to `cat` the file - it shouldn't give you a Permission denied error.
- The export command looks a bit wrong, we need `KRB5CCNAME=/var/run/adsys/krb5cc/$(hostname)` since `hostname` is a shell command. You can confirm that the variable is set correctly by running klist (provided by the krb5-user package). See an example below:
- You ran `smbclient` with sudo - unfortunately sudo does not preserve environment variables which is why the KRB5CCNAME value defaults to `FILE:/tmp/krb5cc_0` (as seen from the second command logs). This is why I suggested running everything as root. Or, pass the -E flag to sudo in order to preserve environment variables.
If there's no file at `/var/run/adsys/krb5cc/$(hostname)`, please run `adsysctl update -m` as root and it should be created (even if the command fails).
Thanks for your patience, and let me know how this goes
Thanks for getting back. Noticing a couple of things about your pasted output: adsys/krb5cc/ $(hostname) ` file. You can confirm this by trying to `cat` the file - it shouldn't give you a Permission denied error.
- Did you run the first set of commands in a root session? This is necessary because the user needs to be able to read the `/var/run/
- The export command looks a bit wrong, we need `KRB5CCNAME= /var/run/ adsys/krb5cc/ $(hostname) ` since `hostname` is a shell command. You can confirm that the variable is set correctly by running klist (provided by the krb5-user package). See an example below:
root@jammy- 337515ec: ~# export KRB5CCNAME= /var/run/ adsys/krb5cc/ jammy-337515ec 337515ec: ~# klist run/adsys/ krb5cc/ jammy-337515ec @DOMAIN. COM
root@jammy-
Ticket cache: FILE:/var/
Default principal: JAMMY-337515EC$
- You ran `smbclient` with sudo - unfortunately sudo does not preserve environment variables which is why the KRB5CCNAME value defaults to `FILE:/ tmp/krb5cc_ 0` (as seen from the second command logs). This is why I suggested running everything as root. Or, pass the -E flag to sudo in order to preserve environment variables.
If there's no file at `/var/run/ adsys/krb5cc/ $(hostname) `, please run `adsysctl update -m` as root and it should be created (even if the command fails).
Thanks for your patience, and let me know how this goes