mount.cifs with sec=krb5 fails with No such file or directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cifs-utils (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
ubuntu 18.04 fresh installation
cifs-utils 2:6.4-1ubuntu1
mount.cifs fails when the option sec=krb5 is given.
The error message "No such file or directory" is not very helpful.
After searching for some time for the reason, I found the /sbin/request-key program was missing, so cifs.upcall was not called and no kerberos key could be loaded. Installing the keyutils package fixes the problem.
Please add a dependency on keyutils to the package cifs-utils.
This is a duplicate of bug #1734700 in ubuntu 17.10 - but still present in 18.04
Bug #1772148 also needs keyutils installed when cifs-utils is installed.
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: cifs-utils 2:6.8-1
ProcVersionSign
Uname: Linux 4.15.0-20-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.1
Architecture: amd64
CurrentDesktop: MATE
Date: Fri Jun 1 15:28:18 2018
InstallationDate: Installed on 2018-05-09 (22 days ago)
InstallationMedia: Ubuntu-MATE 18.04 LTS "Bionic Beaver" - Release amd64 (20180426)
SourcePackage: cifs-utils
UpgradeStatus: No upgrade log present (probably fresh install)
Thanks for the solution, this was no fun to debug on multiple servers.