Page 1 of 1

How to I change my login username??

Posted: Thu Jan 17, 2013 7:32 pm
by psyllex
I have other people who are logging in as admin so I would just like to have one universal username and password for those who need to log into Nagios.

I tried going to:

Code: Select all

/usr/local/nagios/etc/htpasswd.users
And change the user name from there but when i changed it....it didn't allow me to actually view my network...it said I needed to change the cgi file.

Is there a simply way to do this?

Re: How to I change my login username??

Posted: Tue Jan 22, 2013 2:38 pm
by sreinhardt

Code: Select all

htpasswd /usr/local/nagios/etc/htpasswd.users [NewUserHere]
Running the htpasswd command again without -c should allow you add or modify users and their passwords that have access to nagios. This is all you should need to do to add more users within core.

Re: How to I change my login username??

Posted: Thu Jan 24, 2013 3:20 pm
by lesnikov
hi.
i had the same problem. this is how i make it work

Code: Select all

htpasswd /usr/local/nagios/etc/htpasswd.users NEWUSER
and then add these lines to cgi.cfg and restart nagios

Code: Select all

authorized_for_system_information=NEWUSER
authorized_for_configuration_information=NEWUSER
authorized_for_system_commands=NEWUSER
authorized_for_all_services=NEWUSER
authorized_for_all_hosts=NEWUSER
authorized_for_all_service_commands=NEWUSER
authorized_for_all_host_commands=NEWUSER
I dont know if it is the right way but it works :P

Re: How to I change my login username??

Posted: Fri Jan 25, 2013 11:15 am
by slansing
Thanks for the input lesnikov :) He should be able to get it changed between these two posts.