Page 1 of 1

Annoying web login user issue

Posted: Mon Oct 23, 2023 12:07 pm
by colinjack
Firstly I must state that this is not a critical problem! It is just bugging me. :?

I have Nagios Core 4.4.14 running on a Raspberry Pi with PiHole - so using Lighty rather than Apache.
Everything is running fine except that although I only login as nagiosadmin on the web interface it says "Logged in as nagiosadmin, user, user (see attached).
This means that I have to set all authorized_for = settings to * rather than nagiosadmin in cgi.cfg otherwise I get permission errors.

My question is if I am logging in as nagiosadmin where on earth is it getting user from?

I have been through all the config files and can't find anything. Obviously I'm missing something but I have been trawling through for days.

I only have nagiosadmin in htpasswd.

Anybody able to help?

Thanks

Colin

Re: Annoying web login user issue

Posted: Mon Oct 23, 2023 2:51 pm
by colinjack
Found it!!

Lighttpd nagios.conf file had this:

setenv.add-environment = ( "REMOTE_USER" => "user" )

Removed it and all sweetness. :D

Colin