[Nut-upsuser] usbhid-ups must use '-u root'

Greg Vickers daehenoc at iinet.net.au
Fri Nov 14 23:29:38 UTC 2014


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 at monitor:/lib/nut# cat /etc/nut/ups.conf
> [greything]
>     driver = usbhid-ups
>     port = auto
> root at 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 at 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 at 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
> Nut-upsuser at lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser




More information about the Nut-upsuser mailing list