[Nut-upsuser] Hi all

Matt Richardson shortpath at gmail.com
Mon Jul 10 23:39:29 UTC 2006


On 7/10/06, Charles Lepple <clepple at gmail.com> wrote:
> On 7/10/06, Matt Richardson <shortpath at gmail.com> wrote:
> > I've been using nut to manage a variety of smart and dumb UPS's for
> > about a year now, so I've got no excuse for just subscribing to the
> > list now.  Except maybe that the debian-user lists provide plenty of
> > reading material.  Anyway,  I recently updated a couple of boxes to
> > 2.6.15 kernels from 2.4.x and got to learn fun things about udev.  I'm
> > happy to do a write up on a simple udev rule to make permissions and
> > ownership stick across reboots if anyone would find this helpful.
>
> I think this is originally from an email sent by Bruno Wolff:
>
> > You can copy the file scripts/hotplug-ng/nut-usbups.rules.in to
> > /etc/udev/rules.d/nut-usbups.rules . You will probab;ly need to create
> > the rules.d directory. rules.d and nut-usbups.rules can be publicly
> > readable and should be owned by root. In nut-usbups.rules you need to
> > substitute @RUN_AS_USER@ with nut .
>
> Worked just last week on a mixed sarge/testing box.
>
> --
> - Charles Lepple
>

Very nice.  My APCs are all fairly old, using a serial cable for
communication.  I made a local.rules file in /etc/udev/ with the
following line:

KERNEL=="ttyS0", OWNER="nut", GROUP="nut", MODE="0600", OPTIONS+="last_rule"

Then put a symlink in /etc/udev/rules.d/ with the name 010_local.rules.

I'm running debian testing with nut 2.0.3-4 pulled from unstable.

-- 
Matt



More information about the Nut-upsuser mailing list