-2

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??

  • Have you looked at the apache documentation at http://httpd.apache.org? – mdpc Dec 24 '12 at 07: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 Answers2

1

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.

mdpc
  • 11,856
  • 28
  • 53
  • 67
0

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

Shane Madden
  • 114,520
  • 13
  • 181
  • 251