Change Root Password

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

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/
rkennedy
 
Posts: 6562
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.)
rkennedy
 
Posts: 6562
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 2330
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

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 Nagios Core

Who is online

Users browsing this forum: No registered users and 10 guests