[Nut-upsuser] i am stuck with setup :)
Vladimir Micovic
vladimir at micovic.com
Sat May 19 17:10:25 UTC 2012
Update:
I resolve prob. Which was with permissions in /var/state
And now when I try to start upsdrvctl I got:
# bin/upsdrvctl start local_mon
Network UPS Tools - UPS driver controller 2.6.3
Network UPS Tools - Megatec/Q1 protocol USB driver 0.04 (2.6.3)
Can't claim USB device [0665:5161]: could not detach kernel driver from
interface 0: Operation not permitted
Driver failed to start (exit status=1)
-----Original Message-----
From: Charles Lepple [mailto:clepple at gmail.com]
Sent: Saturday, May 19, 2012 5:52 PM
To: Vladimir Micovic
Cc: 'Arnaud Quette'; 'NUT Users'
Subject: Re: [Nut-upsuser] i am stuck with setup :)
On May 18, 2012, at 7:29 PM, Vladimir Micovic wrote:
> How do you mean how I start?
> If you think on user, I put ups.conf "user = root"
I don't think I remember seeing which OS you are using, so I don't know what
scripts start programs like upsd or upsmon.
I tend not to run with "user = root", so I am not sure what the implications
are. I prefer to run NUT unprivileged, with udev rules to set the proper
permissions on the /dev node for the UPS. If upsd and the driver both run
under the same user ID, you shouldn't get the "Permission denied" message
you listed below.
> -----Original Message-----
> From: Charles Lepple [mailto:clepple at gmail.com]
> Sent: Friday, May 18, 2012 3:33 AM
> To: Vladimir Micovic
> Cc: 'Arnaud Quette'; 'NUT Users'
> Subject: Re: [Nut-upsuser] i am stuck with setup :)
>
> On May 17, 2012, at 3:44 PM, Vladimir Micovic wrote:
>
>> Anyway, upsd say next: http://pastebin.com/n1SGBZXL
>
> If it's less than 10 lines, pastebin is pretty silly... our attachment
> size limit is 40KB, not 40 bytes :-)
>
>> Network UPS Tools upsd 2.6.3
>> /usr/local/ups/etc/upsd.conf is world readable listening on
>> 192.168.1.40 port 3493 Can't connect to UPS [local_mon]
>> (blazer_usb-local_mon): Permission denied
>> /usr/local/ups/etc/upsd.users is world readable
>
> How did you start the driver and upsd?
>
> (upsmon depends on upsd, so we need to fix upsd first)
--
Charles Lepple
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
More information about the Nut-upsuser
mailing list