Unable to add user to htpasswd
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.