Page 1 of 1

changing user level with default_user_name set?

Posted: Sat Aug 10, 2013 12:56 am
by jobst
Hi

If I set the default user in the cgi.cfg file to

default_user_name=blah

and protect the directory by some other means, e.g

AuthType Digest
require valid-user
AuthUserFile /path/somepasswordfile

then once the user is logged in though apache login mechanism the user can see the services as configured in the cgi.cfg file.

Now if I would like to SWAP the user to the admin user because I want to see files/services/stuff the "blah" user cannot see how do I do that?
Is there a login page for nagios that I do not know about?
How can I do that with some apache/php/whatever means?

Jobst

Re: changing user level with default_user_name set?

Posted: Mon Aug 12, 2013 9:43 am
by slansing
If I am reading this correctly, you would only need to change to add the user's name to the "authorized_for_all_*" lines in the cgi.cfg file. Once this is saved, give Nagios and Apache a restart for good measure, and this user should be able to see the sections you have added them to now.