Change Root Password

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Change Root Password

Postby xmurphylee » Wed Feb 15, 2017 2:21 pm

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

Re: Change Root Password

Postby rkennedy » Wed Feb 15, 2017 2:28 pm

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

Re: Change Root Password

Postby xmurphylee » Wed Feb 15, 2017 2:38 pm

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

Re: Change Root Password

Postby rkennedy » Wed Feb 15, 2017 2:42 pm

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

Re: Change Root Password

Postby xmurphylee » Wed Feb 15, 2017 2:53 pm

ran zypper install thttpd, and it worked afterinstall....thx
xmurphylee
 
Posts: 17
Joined: Tue Jan 19, 2016 10:06 am

Re: Change Root Password

Postby dwhitfield » Wed Feb 15, 2017 2:54 pm

It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!
Need additional support for CentOS or ubuntu? Try OpenLogic: https://www.openlogic.com/talk-to-expert

We can write Nagios plugins for you!

We are hiring: https://www.perforce.com/careers
dwhitfield
Former Nagios Staff
 
Posts: 4582
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN

Re: Change Root Password

Postby xmurphylee » Wed Feb 15, 2017 3:03 pm

You can lock it thats fine
xmurphylee
 
Posts: 17
Joined: Tue Jan 19, 2016 10:06 am


Return to Community Support

Who is online

Users browsing this forum: No registered users and 34 guests