Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am installing NAGIOS, I came to know that I need to generate a file htpasswd.users related to apche. How can I generate this, any scripts for that??

share|improve this question
Have you looked at the apache documentation at – mdpc Dec 24 '12 at 7:12
Also worth noting: Nagios can use any auth mechanism that httpd can use; there are literally dozens of them. htpasswd is probably not the best option. – Keith Dec 26 '12 at 19:19

The apache package already provides a program called htpasswd that does this for you.

However, you will still have to adjust your apache configuration to enable the authentication to take place. Just having a generated password file will not cause apache to use it.

share|improve this answer

The htpasswd binary, included with Apache, is what you should use to manage an htpasswd file.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.