Why am I getting "Credential formatted incorrectly: (null)" error while mounting a cifs share from a credential file?
Issue
- While mounting a cifs share from a credential file, getting below error.
$ mount //server1/samba /cifs -o credentials=/root/.smbcredentials -vvv
Credential formatted incorrectly: (null)
mount.cifs kernel mount options: ip=XXX.XXX.XXX.XX,unc=\\server1\samba,user=smbuser,pass=********
- However, the share is getting mounted properly.
Environment
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- cifs
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.