I'm trying to execute some commands on my ups, but I keep getting ERR ACCESS-DENIED upscmd -l sinus Instant commands supported on UPS [sinus]: beeper.toggle - Toggle the UPS beeper load.off - Turn off the load immediately load.on - Turn on the load immediately shutdown.return - Turn off the load and return when power is back shutdown.stayoff - Turn off the load and remain off shutdown.stop - Stop a shutdown in progress test.battery.start - Start a battery test test.battery.start.deep - Start a deep battery test test.battery.start.quick - Start a quick battery test test.battery.stop - Stop the battery test An example: upscmd sinus test.battery.start.quick Username (root): gardar Password: Unexpected response from upsd: ERR ACCESS-DENIED I have defined the user in the /etc/ups/upsd.users 74 [gardar] 75 password = hidden 76 allowfrom = local 77 actions = SET 78 instcmds = ALL 79 [local_mon] 80 password = hidden 81 allowfrom = localhost 82 upsmon master Device and driver info: device.mfr: Inform device.model: SINUS1KURM device.type: ups driver.name: blazer_ser driver.version: 2.6.0 driver.version.internal: 1.51 What am I doing wrong? -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20110310/6f4681cb/attachment.htm>
Citeren Gar?ar Arnarsson <gardar op giraffi.net>:> I have defined the user in the /etc/ups/upsd.users > > 74 [gardar] > 75 password = hidden > 76 allowfrom = local > 77 actions = SET > 78 instcmds = ALL > 79 [local_mon] > 80 password = hidden > 81 allowfrom = localhost > 82 upsmon master > > Device and driver info: > > device.mfr: Inform > device.model: SINUS1KURM > device.type: ups > driver.name: blazer_ser > driver.version: 2.6.0 > driver.version.internal: 1.51 > > > What am I doing wrong?Did you check your syslog lately? The 'allowfrom' keyword is no longer used (since a couple of versions actually) and has been replaced by tcp-wrappers, which most likely is compiled in the version you're using. If there is a blanket 'deny all' in /etc/hosts.allow, this requires you to setup access permissions through /etc/hosts.allow. See the UPGRADING document, 'man 8 upsd' and 'man 5 hosts_access'. Adding something like upsd : garder op localhost : ALLOW should work. Best regards, Arjen -- Please keep list traffic on the list (off-list replies will be rejected)