Page 1 of 1

Change Root Password

PostPosted: Wed Feb 15, 2017 2:21 pm
by xmurphylee
Hello,

I am trying to change the root password and I have used the command :

htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin

But I am getting an error saying something about htpasswd being a typo. Any suggestions? I am on Ubuntu using CORE 4.0.4

Re: Change Root Password

PostPosted: Wed Feb 15, 2017 2:28 pm
by rkennedy
We would need to see the error message you're receiving to help.

One alternate way around, is to manually populate the hash in /usr/local/nagios/etc/htpasswd.users file by using a generator such as http://www.htaccesstools.com/htpasswd-generator/

Re: Change Root Password

PostPosted: Wed Feb 15, 2017 2:38 pm
by xmurphylee
The message I am getting after this command :

htpasswd –c /usr/local/nagios/etc/htpasswd.users nagiosadmin

is:

"If 'htpasswd' is not a typo you can use command-not-found to lookup the package that contains it. like this: cnf htpasswd"

Thanks for the password site.

Re: Change Root Password

PostPosted: Wed Feb 15, 2017 2:42 pm
by rkennedy
Try running apt-get install apache2-utils to install the htpasswd component. (if that's not it, it may be thttpd - I don't have an Ubuntu machine handy to test with.)

Re: Change Root Password

PostPosted: Wed Feb 15, 2017 2:53 pm
by xmurphylee
ran zypper install thttpd, and it worked afterinstall....thx

Re: Change Root Password

PostPosted: Wed Feb 15, 2017 2:54 pm
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!

Re: Change Root Password

PostPosted: Wed Feb 15, 2017 3:03 pm
by xmurphylee
You can lock it thats fine