Why am I getting "Credential formatted incorrectly: (null)" error while mounting a cifs share from a credential file?

Solution Verified - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content