[Nut-upsuser] User credential for cgi site
Doug Parsons
doparsons at earthlink.net
Tue May 8 18:02:18 UTC 2007
Okay. Got it fixed. It was a couple of things that were causing issues.
First is that the user had not been created that had set rights for actions
in the upsd.users file.
Second is localhost had to be added to the "allowfrom" for this user.
Once this was done all is well.
Thanks for the help.
Doug
-----Original Message-----
From: Charles Lepple [mailto:clepple at gmail.com]
Sent: Monday, May 07, 2007 11:12 PM
To: Doug Parsons
Cc: nut-upsuser at lists.alioth.debian.org
Subject: Re: [Nut-upsuser] User credential for cgi site
On 5/7/07, Doug Parsons <doparsons at earthlink.net> wrote:
> Network UPS Tools upsset 2.0.4
>
> set input.transfer.high to 130 (was 127)
> Error: SET failed: Access denied
> No settings changed.
What about the webserver error log?
Have you checked the man page for upsset.conf?
Can you try on the command line with upsrw?
> I thought that it would use one of the users from the upsd.users file. But
> neither one of these nor the nut user will work.
Do those users (in upsd.users) have monitor privileges? I think that's
a step up from just being able to see values with upsc.
> ----- Original Message -----
> From: "Charles Lepple" <clepple at gmail.com>
> To: "Doug Parsons" <doparsons at earthlink.net>
> Cc: <nut-upsuser at lists.alioth.debian.org>
> Sent: Monday, May 07, 2007 8:03 PM
> Subject: Re: [Nut-upsuser] User credential for cgi site
>
>
> > On 5/5/07, Doug Parsons <doparsons at earthlink.net> wrote:
> >> Running into a little problem. I have several UPS units connected to
one
> >> server. Then several servers talk to this server. All of this is
working.
> >> When I try to set a setting with the setting.cgi page I get an access
> >> denied. Which credential does the setting.cgi page authenticate
against?
> >
> > I assume you mean upsset.cgi. I believe the web server needs monitor
> > privileges, and the UPS has to be listed in hosts.conf.
> >
> > Can you cut-and-paste the error message verbatim? That should narrow
> > things down. Also, check your web server error log to see if any more
> > detailed messages are there.
> >
> >> I am running 2.0.4 and the particular UPS is a 2200RM APC.
> >
> > Who built the 2.0.4 package you are using?
> >
> > --
> > - Charles Lepple
> >
> >
>
>
>
--
- Charles Lepple
More information about the Nut-upsuser
mailing list