How to use special character in password for HTPasswd authentication in RHOCP 4 ?

Solution Verified - Updated -

Issue

  • Special characters &, |, ;, ", ', ! used in the Password for HTPasswd authentication give command not found error.
$ htpasswd  -B -b ~/tmp/labs/auth-provider/htpasswd ocp4acmy mymm&qwe
[1] 4172
Updating password for user ocp4acmy
bash: qwe: command not found...
[1]+  Done                    htpasswd -B -b ~/DO280/labs/auth-provider/htpasswd ocp4acmy mymm

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4.x

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