Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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 httpd.apache.org? –  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

2 Answers 2

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

share|improve this answer

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

Your Answer

 
discard

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.