CIFS Error return code = -5

If you get one of the following errors:

Mar 2 12:17:28 sap03855 kernel: [3442373.891017] CIFS VFS: Send error in SessSetup = -5
Mar 2 12:17:28 sap03855 kernel: [3442373.891063] CIFS VFS: cifs_mount failed w/return code = -5

client:~ # mount.cifs //$ /localfs -o credentials=/etc/samba/smb_access_label
mount error(5): Input/output error

You should check two things:

1. You have to have the following in smb_access_label

2. If you still get the same error you should add the sec=ntlmssp like this:

client:~ # mount.cifs //$ /localfs -o credentials=/etc/samba/smb_access_label,sec=ntlmssp
client:~ #

You should also try to add the hostname to your /etc/hosts file, just to be sure 🙂


Leave a Reply

Your email address will not be published. Required fields are marked *