Cannot mount cifs share getting "mount error(5): Input/output error"
Issue
- The mount command fails with error below
mount.cifs kernel mount options: ip=<CIFS-Server-IP>,unc=\\<CIFS-Server>\<CIFS-Parent-Directory>,uid=600,gid=336404633,user=<username>,prefixpath=<CIFS-Share-path>,pass=********
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) and kernel log messages (dmesg)
- tcpdump shows CIFS server returned error
STATUS_TRUSTED_RELATIONSHIP_FAILUREto CIFS client
40 2025-12-02 09:50:03.339293 <CIFS-Client-IP> → <CIFS-Server-IP> SMB2 504 Session Setup Request, NTLMSSP_AUTH, User: \<username>
42 2025-12-02 09:50:04.819233 <CIFS-Server-IP> → <CIFS-Client-IP> SMB2 142 Session Setup Response, Error: STATUS_TRUSTED_RELATIONSHIP_FAILURE
- /var/log/messages shows the error
STATUS_TRUSTED_RELATIONSHIP_FAILURE
Dec 2 09:50:03 <CIFS-Client> kernel: CIFS: Attempting to mount <CIFS Share>
Dec 2 09:50:04 <CIFS-Client> kernel: CIFS: Status code returned 0xc000018d STATUS_TRUSTED_RELATIONSHIP_FAILURE
Dec 2 09:50:04 <CIFS-Client> kernel: CIFS: VFS: \\<CIFS Server> Send error in SessSetup = -5
Dec 2 09:50:04 <CIFS-Client> kernel: CIFS: VFS: cifs_mount failed w/return code = -5
Environment
- Red Hat Enterprise Linux (all versions)
- CIFS client
- SMB server (Windows file sharing, Samba server, etc)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.