It's not as simple as that, I can mount cifs shares just fine on 18.04
without having keyutils installed. I tried the exact same command line
as in comment #1, bar the username/domain, against a synology DS216 NAS,
and it worked just fine:

$ sudo mount -t cifs //ds216.lowtech/downloads --verbose -o 
vers=3,username=andreas,sec=ntlmv2,uid=1000,gid=10000,iocharset=utf8,domain=LOWTECH,nounix
Password for andreas@//ds216.lowtech/downloads:  *************
mount.cifs kernel mount options: 
ip=10.10.1.5,unc=\\ds216.lowtech\downloads,vers=3.0,file_mode=0644,dir_mode=0755,vers=3,sec=ntlmv2,iocharset=utf8,nounix,uid=1000,gid=10000,user=andreas,domain=LOWTECH,pass=********

$ mount -t cifs
//ds216.lowtech/downloads on /ds216/downloads type cifs 
(rw,nosuid,nodev,noexec,relatime,vers=3,sec=ntlmv2,cache=strict,username=andreas,domain=LOWTECH,uid=1000,forceuid,gid=10000,forcegid,addr=10.10.1.5,file_mode=0644,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=1048576,wsize=1048576,echo_interval=60,actimeo=1,user)

Do you guys have a pam module or something else storing keys in the
kernel keyring, which cifs-utils is trying to use in your case? Try
"keyctl show", as root and as your user.

Something else you could try is enabling cifs debugging, as outlined
here:

https://wiki.samba.org/index.php/LinuxCIFS_troubleshooting#Enabling_Debugging


The first two "echo" commands fail here, but the one to cifsFYI works, and 
produces a bit more information in dmesg.

Let's see if any of this helps us get to the root of the problem.

-- 
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