I noticed that pam_krb5 sets:

 $KRB5CCNAME to /tmp/krb5cc_<uid>_<six-random-chars>

Which can cause the "Required key not available" error because
mount.cifs is actually looking for a per-uid, not per-session file at
/tmp/_<uid>.

Not yet found a way around it, but to mount things manually I have to do e.g.:
$ sudo cp /tmp/krb5cc_<1234>_<blahblah> /tmp/krb5cc_<1234>

After that, mount commands with "-o sec=krb5" actually works.  Some
background info here:

https://bugzilla.redhat.com/show_bug.cgi?id=517195


** Bug watch added: Red Hat Bugzilla #517195
   https://bugzilla.redhat.com/show_bug.cgi?id=517195

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/676525

Title:
  mount.cifs cannot mount with kerberos

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cifs-utils/+bug/676525/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to