[Bug 2052430] Re: Resource temporarily unavailable on cifs mountpoint, mounted with sec=krb5 option

Vladimir Vershinin 2052430 at bugs.launchpad.net
Thu Feb 8 11:13:29 UTC 2024


** Package changed: ubuntu => cifs-utils (Ubuntu)

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

Title:
  Resource temporarily unavailable on cifs mountpoint,  mounted  with
  sec=krb5  option

Status in cifs-utils package in Ubuntu:
  New

Bug description:
  I need to use krb5 authentication for mounting smb shares.

  My OS details

  PRETTY_NAME="Ubuntu 20.04.4 LTS"
  linux-image-5.4.0-125-generic
  krb5-user   1.17-6ubuntu4.4 
  cifs-utils  2:6.9-1ubuntu0.2
  keyutils    1.6-6ubuntu1.1

  I have workable krb  and request-key configs. The  mountpiont record
  in fstab

  
  //fs.server.local/share /mnt/share cifs sec=krb5,user=smbuser,iocharset=utf8,uid=****,gid=****

  
  And everything work until (I think) the krb ticked expires.
  After  krb ticket expiration I have got an   "Resource temporarily unavailable" error 

  ls  /mnt/share  
  ls: reading directory '/mnt/share/': Resource temporarily unavailable

  According the syslog, at this time  the krb ticket is refreshed by the
  cufs.upcall tool

  Feb  5 08:16:24 smbclient.server.local cifs.upcall: key description: cifs.spnego;0;0;39010000;ver=0x2;host=fs.server.local;ip4=*.*.*.*;sec=krb5;uid=0x
  fffe;creduid=0x0;user=usrappsflyer;pid=0x919e5
  Feb  5 08:16:24  cifs.upcall: ver=2
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: host=fs.server.local
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: ip=*.*.*.*
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: sec=1
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: uid=*****
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: creduid=0
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: user=usrappsflyer
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: pid=*****
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: get_cachename_from_process_env: pid == 0
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: get_existing_cc: default ccache is FILE:/tmp/krb5cc_0
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: get_tgt_time: unable to get principal
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: handle_krb5_mech: getting service ticket for fs.server.local/
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: handle_krb5_mech: obtained service ticket
  Feb  5 08:16:24  smbclient.server.local cifs.upcall: Exit status 0
    

  And mountpoint become available till next krb ticket expiration.

  How I can remove the "Resource temporarily unavailable" error in this
  case?

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




More information about the foundations-bugs mailing list