HOST: Kubuntu 16.04.3 LTS
LOCALHOST: Kubuntu 17.10
I'm not able anymore to mount a cifs share on a terminal:
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)
In syslog I found the error messages when attempting:
Status code returned 0xc000005e STATUS_NO_LOGON_SERVERS CIFS VFS: Send error in SessSetup = -5 CIFS VFS: cifs_mount failed w/return code = -5
I'm sure this is a working share with sufficient permissions for that user. I can start dolphin and open smb://HOST/share without any problems!
My system is in an Active Directory environment (realm, sssd) and I also tried to mount using a kerberos ticket but faild:
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)
In syslog I found this error messages when attempting:
CIFS VFS: Send error in SessSetup = -2 CIFS VFS: cifs_mount failed w/return code = -2
SSO via kerberos is working! Using smb://HOST/share on dolphin I can open the share without a password.
Also I can login to the share using
smbclient -U USER //HOST/share
and I can list files there using 'ls'.
I found someone in with the same error in the internet but he could solve it by uninstalling winbind. Unfortunately I have no winbind installed on both machines and so this is not a fix for me. Someone else needed to add the workgroup name, which is not working for me too. Also I found to use a different smb version for mounting. Unfortunately it always fails with "cifs_mount faild w/return code = -5" (vers=1.0, vers=2.0, vers=2.1, vers=3.0, vers=3.1.1).
I could reproduce this error between two clients with both LTS or latest release 16.04<->16.04 and 17.10<->17.10.
Interesting: mounting is working if I mount a Windows share and not a linux samba share!
What is the reason for cifs_mount error -5?