Bug 14506 - cifs mount with missing krb5 key should give better error message
Summary: cifs mount with missing krb5 key should give better error message
Status: NEW
Alias: None
Product: CifsVFS
Classification: Unclassified
Component: user space tools (show other bugs)
Version: 5.x
Hardware: All All
: P5 normal
Target Milestone: ---
Assignee: Jeff Layton
QA Contact: cifs QA contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-21 09:57 UTC by Björn Jacke
Modified: 2020-09-21 09:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Björn Jacke 2020-09-21 09:57:04 UTC
when trying to mount a cifs share with sec=krb5 but with missing krb5 key, then the mount command returns:

mount error(2): No such file or directory

This error message does not really help most of the users, I think.

If there is a sec=krb5 cifs mount with an *expired* key and you try to access the mount point, the error message is better:

ls: Öffnen von Verzeichnis '.' nicht möglich: Der notwendige Schlüssel ist nicht verfügbar

(in English like "opening directory "." not possible: the required key is not availbale"). 

A similar message would be good at mount time if the required key is not available.