Logged in as ? or Sorry, but you are not authorized to commit the specified command.

alexus tmda at alexus.org
Tue May 31 14:47:11 CEST 2005


My nagios.cmd have enough permition to be read and written by nobody
(apache) and nagios itself

# ls -ld ~nagios/var/rw/nagios.cmd 
-rw-rw----  1 nagios  nobody  0 May 30 23:33
/usr/local/nagios/var/rw/nagios.cmd
# ls -ld ~nagios/var/rw/
drwsr-sr-x  2 nobody  nagios  512 May 30 23:33 /usr/local/nagios/var/rw/
#

I loged in as "nagios"

It is only when I confirm an actual manual commmand it changes myself as
"Logged in as ?" and "Logged in as ? or Sorry, but you are not authorized to
commit the specified command."

at all other time it shows me "Logged in as nagios"



 
-----Original Message-----
From: Subhendu Ghosh [mailto:sghosh at sghosh.org] 
Sent: Monday, May 30, 2005 11:56 PM
To: alexus
Cc: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Logged in as ? or Sorry, but you are not
authorized to commit the specified command.


file permissions should allow the web server process to write and nagios 
process to read.

But before the data i actually written to the cmd file, the authentication 
code checks to see if you are allowed to do so.  If you are logged in as 
"?" then by default you are not allowed to send commands.

If you want non-contacts to send commands, edit cgi.cfg and updated 
"authorized_for_*_commands"

You have to login and authenticate in the web interface before sending 
commands.

On Mon, 30 May 2005, alexus wrote:

> Once again..
>
>
>
> My ~nagios/var/rw/nagios.cmd
>
>
>
> I even tried with 777. didn't help.
>
>
>
> What else I can try to get it to work? Is there a way to run nagios in
debug
> mode where I can see what is happening and where the problem is?
>
>
>
> I even tried to use user nobody to write and read from/to that file..
>
>
>
>
>
>  _____
>
> From: Dan Davis [mailto:hokie99cpe at gmail.com]
> Sent: Sunday, May 29, 2005 9:44 PM
> To: alexus
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Logged in as ? or Sorry, but you are not
> authorized to commit the specified command.
>
>
>
> all files have nagios:nagios as their ownership/group..
>
> ~nagios have 755 nagios:nobody
>
> Maybe that?
>
>
> Everything else looks ok... and the nagios home directory is not the
problem
> in and of itself... but the nagios.cmd file needs to be writable by your
web
> server user. Be sure of that and you should be good to go.
>
> -Dan
>
>

-- 




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list