Encrypted password in CIFS credentials file

Solution Verified - Updated -

Issue

  • Can an encrypted password in credential file be used with cifs mounts?
  • For example in the following example "password" is not encrypted:

    # cat /root/.pass
    username=domain\user
    password=password
    
    # cat /root/.pass2
    username=user2
    password=password
    domain=domain
    
    # mount -t cifs -o credentials=/root/.pass //<smb-server>/<path> /<mount-point>/
    

Environment

  • Red Hat Enterprise Linux

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