Well, it won't install because the version in wheezy is the same as the
version in wheezy-backports.
Right:
# ls -la /dev/bus/usb/002
total 0
drwxr-xr-x 2 root root 80 Nov 15 13:31 .
drwxr-xr-x 7 root root 140 Nov 15 13:31 ..
crw-rw-r-T 1 root root 189, 128 Nov 15 13:31 001
crw-rw-r-T 1 root root 189, 129 Nov 15 13:37 002
No surprise there! Guess it was a permission thing, I did 'chown
root:nut 002' and I could start the driver without '-u root'. I
rebooted the netbook and voila! The permissions are now created correctly.
Onwards.
On 15/11/2014 9:29 am, Greg Vickers wrote:
Hi,
Self-reply ftw, is it something to do with the permissions of the
device that is created when the UPS is plugged in? I remember that
Debian does have a pretty strict permissions structure, so do I have
to fiddle the permissions of something in /dev?
I'll try updating nut-server to version 2.6.4-2.3+deb7u1 in wheezy
backports and report back - initial attempt to install from wheezy
backports is not working! (New package won't install when running
'aptitude -t wheezy-backports install nut-server', even though
aptitude got the updated package list correctly...)
Thanks,
Greg
On 14/11/2014 9:57 pm, Greg Vickers wrote:
Hi all,
(Keeping this in a separate email from my first one so as to not make
it horribly complex)
I've connected my Belkin F6C120auUNV UPS to my Debian 7.7.0 host via
USB, and found that the usbhid-ups driver will not start unless I use
the option '-u root', even when starting this driver as root:
root@monitor:/lib/nut# cat /etc/nut/ups.conf
[greything]
driver = usbhid-ups
port = auto
root@monitor:/lib/nut# ./usbhid-ups -a greything
Network UPS Tools - Generic HID driver 0.37 (2.6.4)
USB communication driver 0.32
Can't claim USB device [050d:0912]: could not detach kernel driver
from interface 0: Operation not permitted
root@monitor:/lib/nut# ./usbhid-ups -a greything -u root
Network UPS Tools - Generic HID driver 0.37 (2.6.4)
USB communication driver 0.32
Using subdriver: Belkin HID 0.15
root@monitor:/lib/nut# ps aux | grep usbhid
root 4857 0.1 0.0 16888 712 ? Ss 21:54 0:00
./usbhid-ups -a greything -u root
root 4859 0.0 0.0 7836 880 pts/0 S+ 21:54 0:00 grep
usbhid
Is this expected behavior? Seems like it should not be required, a
quick google found this:
https://bugzilla.redhat.com/show_bug.cgi?id=488368 (not the same
situation, but the short-term fix detailed works, i.e. use '-u root')
Thanks,
Greg
_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser
_______________________________________________
Nut-upsuser mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser