Unable to add user to htpasswd

Solution In Progress - Updated -

Issue

  • I am unable to add a user on the local htpasswd file using the htpasswd command. It looks like this file is locked by a process, but I am unable to determine how I can unlock (ran a lsof command to search for htpasswd).
[joe@hostname /]$ htpasswd /usr/bin/htpasswd garima
htpasswd: cannot open file /usr/bin/htpasswd for read/write access
[joe@hostname/]$htpasswd -c /usr/bin/htpasswd garima
htpasswd: cannot open file /usr/bin/htpasswd for read/write access

Environment

  • Openshift 3.0

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