Mail archive
alpine-user

[alpine-user] USB Permissions

From: Gareth Williams <gareth_at_garethwilliams.me.uk>
Date: Wed, 25 Jul 2018 07:50:33 +0100

Hi,

I'm trying to set up NUT (UPS tools) on Alpine 3.8.  I've compiled from
edge and that stage seems to have worked fine.

The device is an EATON Ellipse ECO 800 UPS which uses USB for
communicating with Alpine.  I've therefore also installed eudev to
manage to USB permissions.

However, I can't get it to communicate.

I've added the UPS to ups.conf:

     [eaton]
     driver = usbhid-ups
     port = auto
     vendorid=0463
     desc = "Eaton UPS"

But when I try to start it, I get errors.  Running a strace on the driver:

     strace /usr/lib/nut/usbhid-ups -a eaton

results in (amongst other messages):

     stat("/sys/bus/usb/devices", 0x7639e69ffe80) = -1 EACCES
(Permission denied)

Checking permissions with:

     ls -ld /sys/bus/usb/devices

     drwx------    2 root     root             0 Jul 24 19:41
/sys/bus/usb/devices/

In fact, it is 0600 root:root all the way up to /sys/bus.

Shouldn't this be 0644 or similar, or maybe 0640 but with group 'usb'?

Kind regards,

Gareth Williams



---
Unsubscribe:  alpine-user+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-user+help_at_lists.alpinelinux.org
---
Received on Wed Jul 25 2018 - 07:50:33 UTC