[Nut-upsuser] Re: Problems with config of newhidups

Kjell Claesson kjell.claesson at telia.com
Wed Jul 26 06:15:44 UTC 2006


Hi Tom.
ons 2006-07-26 klockan 00:46 -0400 skrev Tom Diehl:
> On Tue, 25 Jul 2006, Charles Lepple wrote:
> 
> > On 7/25/06, Tom Diehl <tdiehl at rogueind.com> wrote:
> >> EL4 does use udev. Sure wish I understood it. :-(
> >
> > In that case, you need the rules in the hotplug-ng directory. I guess
> > we should rename that to udev at some point...
> 
> I do not have a /etc/hotplug.d/usb/ directory to put the hotplug stuff in.
> 
The new udev is taking over the hotplug and also coldplug functions.

8<----snip-----
> /etc/udev/rules.d:
> total 16
> -rw-r--r--  1 root root  152 Nov 30  2005 10-wacom.rules
> -rw-r--r--  1 root root 3503 Dec 20  2005 50-udev.rules
> 
> /etc/udev/scripts:
> total 40
> -rwxr-xr-x  1 root root 733 Dec 20  2005 MAKEDEV.dev
> -rwxr-xr-x  1 root root 662 Dec 20  2005 check-cdrom.sh
> -rwxr-xr-x  1 root root 599 Dec 20  2005 hotplug.dev
> -rwxr-xr-x  1 root root 216 Dec 20  2005 ide-media.sh
> -rwxr-xr-x  1 root root 978 Dec 20  2005 pam_console.dev
> (pocono pts17) $
> 
> Can you tell me where the rules are supposed to go or what I need to to do to
> figure thing out??
> 

It go into /etc/udev/rules.d.
Copy the 'scripts/hotplug-ng/nut-usbups.rules.in' to /etc/udev/rules.d
and rename it to 55-usbups.rules .

Then it is parsed after the default udev.rules.

Now open the file and change the "@RUN_AS_USER@" to the user you run 
nut as.

The lines look like this (sorry for the line break). 
# APC - usbhid-ups
SYSFS{idVendor}=="051d", SYSFS{idProduct}=="0002", MODE="660",
GROUP="@RUN_AS_USER@"

if you run it as user nut, it should look like this.
# APC - usbhid-ups
SYSFS{idVendor}=="051d", SYSFS{idProduct}=="0002", MODE="660",
GROUP="nut"

As you are running an APC this is the only line you need but you can
edit all of them.

Regards
Kjell





More information about the Nut-upsuser mailing list