[Nut-upsuser] USB problem as user

Czuczy Gergely czuczy at publishing.hu
Sat Apr 21 07:09:01 UTC 2007


On Fri, 20 Apr 2007 14:36:06 -0300 (ADT)
selinger at mathstat.dal.ca (Peter Selinger) wrote:

> There are two solutions, and you almost mentioned them yourself.
> 
> (1) run the driver and upsd with -u root, or
This is the situation that I'd like to prevent.
> 
> (2) change the permissions for the USB device corresponding to your
>     UPS, which is most likely /proc/bus/usb/XXX/YYY, for certain
>     values of XXX and YYY.
As I have already told it, I've done this, but it does not work.
Chown/modding the /proc/bus/usb to nut:nut (the user:group which
the daemon runs with) recursively (that means, every dir and every
sub-dir and file of it, and ever subdir of every subdir, so on...)
seems not to be enough, since newhidups is unable to find the device,
as I have pasted it previously.

> 
> If you do not have hotplugging or udev, then you cannot automate step
> (2). 
> 
> -- Peter
> 
> Czuczy Gergely wrote:
> > 
> > Hello
> > 
> > I'm having a bit of a trouble to set up a Back-UPS on
> > a production box.
> > We're using the newhidups driver for this module here, in
> > the office, and I'd like to monitor the one, out in our
> > server farm.
> > 
> > The situation is the following:
> > # /lib/nut/newhidups -u root -DD -a ups1 2> ups1.out
> > Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30
> > (2.0.5)
> > 
> > this one worked flawlessly, while as a user, it cannot access
> > the UPS:
> > 
> > # /lib/nut/newhidups -u nut -DD -a ups1
> > Network UPS Tools: 0.28 USB communication driver 0.28 - core 0.30
> > (2.0.5)
> > 
> > debug level is '2'
> > No appropriate HID device found
> > No matching HID UPS found
> > 
> > I've chowned to nut:nut /dev/usb/* and /proc/bus/usb recursively,
> > but it didn't help.
> > 
> > I'd like to ask for help, what do i need to adjust on the system
> > to make it work.
> > 
> > Some circumstances:
> > This is a production box. The kernel cannot be changed,
> > it cannot be restarted, and it should be held in awe and
> > respect. So I can only touch it as minimally as it's
> > required.
> > 
> > hotplug is not available here, so replugging is USB cable is
> > out of question.
> > 
> > # /etc/init.d/hotplug restart
> >  * Kernel hotplug support not enabled.
> > 
> > So, what should I do to make this work?
> > 
> > --=20
> > =C3=9Cdv=C3=B6zlettel,
> > 
> > Czuczy Gergely
> > Publishing Factory Kft
> > http://www.publishing.hu/
> > 
> > _______________________________________________
> > Nut-upsuser mailing list
> > Nut-upsuser at lists.alioth.debian.org
> > http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser
> > 
> 


-- 
Üdvözlettel,

Czuczy Gergely
Publishing Factory Kft
http://www.publishing.hu/



More information about the Nut-upsuser mailing list