A small clarification of the problem: The core issue is that installing
cifs-utils (and smbclient) and doing a cifs SMB3 (or SMB1) mount:

> sudo mount -t cifs //xx.yy.zz/abc t --verbose -o
vers=3,username=xxxxxx,sec=ntlmv2,uid=1000,gid=1000,iocharset=utf8,domain=DD,nounix

yields a obfuscating "-2" CIFS error code:

  dmesg: [ 381.870721] CIFS VFS: cifs_mount failed w/return code = -2

  error text: No such file or directory" or "CIFS VFS: cifs_mount failed
w/return code = -2"

Installing keyutils resolves the problem, and the mount command
succeeds.

Keyutils is a suggested package in cifs-utils (and libkeyutils1 is
required), but it seems that the CIFS mount is directly dependent on the
keyutils package (not just the libkeyutils1 as one would expect).

The problem is NOT new in 18.04, it was basically the same in 17.10.

A suggested solution could be 1) to check CIFS for use/dependency of
keyutils, and to put a better error message into the log ('keytuils
missing' not just -2), or 2) to make keyutils required for the cifs-
utils package.


NOTE: I still get a strange 

  dmesg: [ 362.752492] CIFS VFS: BAD_NETWORK_NAME: \\xx.yy.zz\abc

when the mount succeeds.

Regards
.c

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

Title:
  Mount.cifs does not work without keyutils being installed

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

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

Reply via email to