Change Root Password

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
xmurphylee
Posts: 17
Joined: Tue Jan 19, 2016 10:06 am

Change Root Password

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Change Root Password

Post 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/
Former Nagios Employee
xmurphylee
Posts: 17
Joined: Tue Jan 19, 2016 10:06 am

Re: Change Root Password

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Change Root Password

Post 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.)
Former Nagios Employee
xmurphylee
Posts: 17
Joined: Tue Jan 19, 2016 10:06 am

Re: Change Root Password

Post by xmurphylee »

ran zypper install thttpd, and it worked afterinstall....thx
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Change Root Password

Post by dwhitfield »

It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
xmurphylee
Posts: 17
Joined: Tue Jan 19, 2016 10:06 am

Re: Change Root Password

Post by xmurphylee »

You can lock it thats fine
Locked