Description of problem: When hidups driver attempts to open /dev/hiddev0, permission is denied. Version-Release number of selected component (if applicable): nut-2.0.2-0.fc4.2 How reproducible: always Steps to Reproduce: 1. install and configure nut to use hidups driver 2. service ups start 3. Actual results: # service ups start Starting hidups: Network UPS Tools: HID UPS driver 0.13 (2.0.2) Warning: This is an experimental driver. Some features may not function correctly. hiddev path open /dev/hiddev0: Permission denied [FAILED] Starting upsd: Network UPS Tools upsd 2.0.2 Can't connect to UPS [igor-ups] (hidups-hiddev0): No such file or directory Synchronizing........ giving up [ OK ] Starting UPS monitor (master): Network UPS Tools upsmon 2.0.2 UPS: igor-ups@localhost (master) (power value 1) Using power down flag file /etc/killpower [ OK ] Broadcast message from nut (Fri Oct 7 07:42:59 2005): Communications with UPS igor-ups@localhost lost Broadcast message from nut (Fri Oct 7 07:43:04 2005): UPS igor-ups@localhost is unavailable Expected results: # service ups start Starting hidups: Network UPS Tools: HID UPS driver 0.13 (2.0.1) Warning: This is an experimental driver. Some features may not function correctly. Detected American Power Conversion Back-UPS LS 700 FW:19.b3 .D USB FW:b3 on port /dev/hiddev0 [ OK ] Starting upsd: Network UPS Tools upsd 2.0.1 /etc/ups/upsd.conf is world readable Connected to UPS [igor-ups]: hidups-hiddev0 Synchronizing...done [ OK ] Starting UPS monitor (master): Network UPS Tools upsmon 2.0.1 UPS: igor-ups@localhost (master) (power value 1) Using power down flag file /etc/killpower [ OK ] Additional info: Worked fine in nut-2.0.1-1. Permissions on /dev/hiddev have not changed. # ls -l /dev/hiddev0 crw-rw---- 1 root root 180, 96 Sep 30 08:25 /dev/hiddev0
Not sure if this is related, but this latest rpm does not appear to install these files: /etc/hotplug/usb/libhidups /etc/hotplug/usb/libhid.usermap From what I've read, they are required to set appropriate permissions for newhidups -- don't know about hidups.
Yes, the hotplug scripts are not included in latest rpm. Matthew, could yould please copy the missing scripts (you find them in nut-2.0.2/scripts/hotplug) in /etc/hotplug/usb/, and test it again? Thanks
Just copying libhidups and libhid.usermap (and making libhidups executable) does not help. The README suggests that these scripts are for kernel-2.4 and that an update is needed for kernel-2.6 udev. It also refers to running update-usb.usermap, which does not exist on my system.
yes, the udev rule is needed in FC4/FC5. I have built new nut-2.0.3 in rawhide which should fix this problem. for FC4/FC5 update i will build later this week. Thanks for your report.