[Bug 1734700] Re: mounting CIFS share failure (cifs_mount failed w/return code = -2)
Andreas Hasenack
1734700 at bugs.launchpad.net
Wed Sep 23 12:58:19 UTC 2020
@xavee, what kind of authentication are you using when mounting the cifs
share? Can you also share the last entries of dmesg when you attempted
mount fails, and ubuntu details (release, cifs-utils package version,
etc).
** Changed in: cifs-utils (Ubuntu)
Status: Invalid => Incomplete
--
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/1734700
Title:
mounting CIFS share failure (cifs_mount failed w/return code = -2)
Status in cifs-utils package in Ubuntu:
Incomplete
Bug description:
HOST: Kubuntu 16.04.3 LTS
LOCALHOST: Kubuntu 17.10
The system is in an working Active Directory environment (realm,
sssd). But mounting on commandline using a kerberos ticket is failing:
mount -t cifs -o user=USER,domain=DOMAIN,cruid=USER,sec=krb5 //HOST/share /mnt/tmp
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
journalctl/syslog:
CIFS VFS: Send error in SessSetup = -2
CIFS VFS: cifs_mount failed w/return code = -2
smbclient -k -U USER //HOST/share
is working and I can list all files in the share.
smbclient -U USER //HOST/share
is working too (without kerberos!) and I can list all files in the share.
using a filemanager with cifs like dolphin is working!
I can open smb://HOST/share with dolphin without a password (SSO).
Using mount.cifs without kerberos is not working too (in contrast to dolphin and smbclient):
mount -t cifs -o user=USER,domain=DOMAIN //HOST/share /mnt/tmp
Password for USER@//HOST/share: *************
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
journalctl/syslog:
Status code returned 0xc000005e STATUS_NO_LOGON_SERVERS
CIFS VFS: Send error in SessSetup = -5
CIFS VFS: cifs_mount failed w/return code = -5
Additional tests show me that it is working the other way round:
mounting Kubuntu 17.10 from Kubuntu 16.04.3 with kerberos (same machines) is working!
There has to be a change, that is not working anymore with a newer Ubuntu than 16.04.
Mounting on commandline without kerberos is not working too and I get the same error as above in syslog:
CIFS VFS: Send error in SessSetup = -5
CIFS VFS: cifs_mount failed w/return code = -5
Anyway, cifs mounting with kerberos stops working in newer distributions, which has to be fixed!
LOCALHOST: Kubuntu 17.10
========================
# dpkg -l | grep -e krb5 -e samba -e smb -e sssd
ii krb5-config 2.6 all Configuration files for Kerberos Version 5
ii krb5-locales 1.15.1-2 all internationalization support for MIT Kerberos
ii krb5-user 1.15.1-2 amd64 basic programs to authenticate using MIT Kerberos
ii libgssapi-krb5-2:amd64 1.15.1-2 amd64 MIT Kerberos runtime libraries - krb5 GSS-API Mechanism
ii libkrb5-26-heimdal:amd64 7.4.0.dfsg.1-2 amd64 Heimdal Kerberos - libraries
ii libkrb5-3:amd64 1.15.1-2 amd64 MIT Kerberos runtime libraries
ii libkrb5support0:amd64 1.15.1-2 amd64 MIT Kerberos runtime libraries - Support library
ii libsmbclient:amd64 2:4.6.7+dfsg-1ubuntu3.1 amd64 shared library for communication with SMB/CIFS servers
ii libsmbios2v5 2.3.1-0ubuntu2 amd64 Provide access to (SM)BIOS information -- dynamic library
ii python-samba 2:4.6.7+dfsg-1ubuntu3.1 amd64 Python bindings for Samba
ii samba 2:4.6.7+dfsg-1ubuntu3.1 amd64 SMB/CIFS file, print, and login server for Unix
ii samba-common 2:4.6.7+dfsg-1ubuntu3.1 all common files used by both the Samba server and client
ii samba-common-bin 2:4.6.7+dfsg-1ubuntu3.1 amd64 Samba common files used by both the server and the client
ii samba-dsdb-modules 2:4.6.7+dfsg-1ubuntu3.1 amd64 Samba Directory Services Database
ii samba-libs:amd64 2:4.6.7+dfsg-1ubuntu3.1 amd64 Samba core libraries
ii samba-vfs-modules 2:4.6.7+dfsg-1ubuntu3.1 amd64 Samba Virtual FileSystem plugins
ii smb4k 2.0.1-1 amd64 Samba (SMB) share advanced browser
ii smbclient 2:4.6.7+dfsg-1ubuntu3.1 amd64 command-line SMB/CIFS clients for Unix
ii sssd 1.15.3-2ubuntu1 amd64 System Security Services Daemon -- metapackage
ii sssd-ad 1.15.3-2ubuntu1 amd64 System Security Services Daemon -- Active Directory back end
ii sssd-ad-common 1.15.3-2ubuntu1 amd64 System Security Services Daemon -- PAC responder
ii sssd-common 1.15.3-2ubuntu1 amd64 System Security Services Daemon -- common files
ii sssd-dbus 1.15.3-2ubuntu1 amd64 System Security Services Daemon -- D-Bus responder
ii sssd-ipa 1.15.3-2ubuntu1 amd64 System Security Services Daemon -- IPA back end
ii sssd-krb5 1.15.3-2ubuntu1 amd64 System Security Services Daemon -- Kerberos back end
ii sssd-krb5-common 1.15.3-2ubuntu1 amd64 System Security Services Daemon -- Kerberos helpers
ii sssd-ldap 1.15.3-2ubuntu1 amd64 System Security Services Daemon -- LDAP back end
ii sssd-proxy 1.15.3-2ubuntu1 amd64 System Security Services Daemon -- proxy back end
ii sssd-tools 1.15.3-2ubuntu1 amd64 System Security Services Daemon -- tools
HOST: Kubuntu 16.04.3 LTS
=========================
# dpkg -l | grep -e krb5 -e samba -e smb -e sssd
ii krb5-config 2.3 all Configuration files for Kerberos Version 5
ii krb5-locales 1.13.2+dfsg-5ubuntu2 all Internationalization support for MIT Kerberos
ii krb5-user 1.13.2+dfsg-5ubuntu2 amd64 Basic programs to authenticate using MIT Kerberos
ii libgssapi-krb5-2:amd64 1.13.2+dfsg-5ubuntu2 amd64 MIT Kerberos runtime libraries - krb5 GSS-API Mechanism
ii libkrb5-26-heimdal:amd64 1.7~git20150920+dfsg-4ubuntu1.16.04.1 amd64 Heimdal Kerberos - libraries
ii libkrb5-3:amd64 1.13.2+dfsg-5ubuntu2 amd64 MIT Kerberos runtime libraries
ii libkrb5support0:amd64 1.13.2+dfsg-5ubuntu2 amd64 MIT Kerberos runtime libraries - Support library
ii libsmbclient:amd64 2:4.3.11+dfsg-0ubuntu0.16.04.12 amd64 shared library for communication with SMB/CIFS servers
ii python-samba 2:4.3.11+dfsg-0ubuntu0.16.04.12 amd64 Python bindings for Samba
ii samba 2:4.3.11+dfsg-0ubuntu0.16.04.12 amd64 SMB/CIFS file, print, and login server for Unix
ii samba-common 2:4.3.11+dfsg-0ubuntu0.16.04.12 all common files used by both the Samba server and client
ii samba-common-bin 2:4.3.11+dfsg-0ubuntu0.16.04.12 amd64 Samba common files used by both the server and the client
ii samba-dsdb-modules 2:4.3.11+dfsg-0ubuntu0.16.04.12 amd64 Samba Directory Services Database
ii samba-libs:amd64 2:4.3.11+dfsg-0ubuntu0.16.04.12 amd64 Samba core libraries
ii samba-vfs-modules 2:4.3.11+dfsg-0ubuntu0.16.04.12 amd64 Samba Virtual FileSystem plugins
ii smb4k 1.1.2-1 amd64 Samba (SMB) share advanced browser for KDE
ii smbclient 2:4.3.11+dfsg-0ubuntu0.16.04.12 amd64 command-line SMB/CIFS clients for Unix
ii sssd 1.13.4-1ubuntu1.9 amd64 System Security Services Daemon -- metapackage
ii sssd-ad 1.13.4-1ubuntu1.9 amd64 System Security Services Daemon -- Active Directory back end
ii sssd-ad-common 1.13.4-1ubuntu1.9 amd64 System Security Services Daemon -- PAC responder
ii sssd-common 1.13.4-1ubuntu1.9 amd64 System Security Services Daemon -- common files
ii sssd-ipa 1.13.4-1ubuntu1.9 amd64 System Security Services Daemon -- IPA back end
ii sssd-krb5 1.13.4-1ubuntu1.9 amd64 System Security Services Daemon -- Kerberos back end
ii sssd-krb5-common 1.13.4-1ubuntu1.9 amd64 System Security Services Daemon -- Kerberos helpers
ii sssd-ldap 1.13.4-1ubuntu1.9 amd64 System Security Services Daemon -- LDAP back end
ii sssd-proxy 1.13.4-1ubuntu1.9 amd64 System Security Services Daemon -- proxy back end
ii sssd-tools 1.13.4-1ubuntu1.9 amd64 System Security Services Daemon -- tools
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cifs-utils/+bug/1734700/+subscriptions
More information about the foundations-bugs
mailing list