[Nut-upsuser] Powerware 5110

Charles Lepple clepple at gmail.com
Sun Feb 4 13:40:55 CET 2007


On 2/4/07, Steve Simeonidis <steves at awebd.com.au> wrote:
> Thanks Charles/Kjell,
>
> I installed from the RPMS. If I use -u root seems to find the UPS. How do I make it work?

Check and see if the RPM has a hotplug-ng directory somewhere, or if
it has a file named something like 'nut-usbups.rules'. That should go
init /etc/udev/rules.d (probaby should be named
'025_nut-usbups.rules').

If it wasn't included in the RPM, you can grab the source file here:

http://svn.debian.org/wsvn/nut/tags/v2.0.3/scripts/hotplug-ng/nut-usbups.rules.in?op=file&rev=0&sc=0

You will also need to find out what system user/group the driver is
being run as. (This should be the 'user' column from 'ps auxww' if you
don't run the driver with '-u root'.

For instance, if the RPMs use the 'nut' user (and there is a 'nut'
group as well), run this command:

sed 's/@RUN_AS_USER@/nut/' < nut-usbups.rules.in > 025_nut-usbups.rules

And then put 025_nut-usbups.rules in /etc/udev/rules.d.

You will have to unplug and replug the USB cable once for the
permissions to change.

-- 
- Charles Lepple



More information about the Nut-upsuser mailing list