[Nut-upsdev] newhidups subdriver_matcher incorrectly matches USB hub

Charles Lepple clepple at gmail.com
Tue Aug 15 23:37:31 UTC 2006


On 8/15/06, Schmier, Jacob <Jacob_Schmier at inter-tel.com> wrote:
>  :/tmp# /tmp/newhidups -DDD /dev/usb/hid/hiddev0

(Note that you do not need to specify the /dev node for newhidups.)

One way to avoid this is to run the driver as an unprivileged user,
and set up udev/hotplug to only give NUT read/write access to the UPS.

IIRC, most distributions use mode 0644 on /proc/bus/usb/* nodes by
default, so creating a 'nut' user and running 'chown nut ...' in the
hotplug script would do the trick. See scripts/hotplug or
scripts/hotplug-ng (udev) for more information.

-- 
- Charles Lepple



More information about the Nut-upsdev mailing list