From owner-freebsd-bugs@FreeBSD.ORG Sat Mar 24 11:30:15 2012 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F97F106564A for ; Sat, 24 Mar 2012 11:30:15 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 414CA8FC14 for ; Sat, 24 Mar 2012 11:30:15 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q2OBUFT8077952 for ; Sat, 24 Mar 2012 11:30:15 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q2OBUFXt077949; Sat, 24 Mar 2012 11:30:15 GMT (envelope-from gnats) Date: Sat, 24 Mar 2012 11:30:15 GMT Message-Id: <201203241130.q2OBUFXt077949@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Stefan Balu Cc: Subject: Re: misc/166321: devd rule is not processed X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Stefan Balu List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Mar 2012 11:30:15 -0000 The following reply was made to PR misc/166321; it has been noted by GNATS. From: Stefan Balu To: bug-followup@FreeBSD.org Cc: Subject: Re: misc/166321: devd rule is not processed Date: Sat, 24 Mar 2012 13:29:40 +0200 --047d7b15aacbf898ef04bbfb74a0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I finally got it working using the following `nut.conf` configuration: notify 100 { match "system" "USB"; match "subsystem" "INTERFACE"; match "type" "ATTACH"; match "vendor" "0x0665"; match "product" "0x5161"; action "chown -LR uucp:operator /dev/$cdev"; }; I belive it works because of `chown`'s -LR cmd-line options. Thing is, that using `logger` as `action` did log stuff, so the rules did seem to match ... however, the ownership was not set. --=20 =C8=98tefan B=C4=82LU Tel: +40757 377 489 --047d7b15aacbf898ef04bbfb74a0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I finally got it working using the following `nut.conf` configu= ration:

notify 100 {
<= span style=3D"white-space:pre-wrap"> match "system" "= USB";
match "subsystem&quo= t; "INTERFACE";
<= /span>match "type" "ATTACH";
match "vendor" = "0x0665";
= match "product" "0x5161";
action "chown -LR uucp:operator /dev= /$cdev";
};

I belive it works because of `chown`'s= -LR cmd-line options. Thing is, that using `logger` as `action` did log st= uff, so the rules did seem to match ... however, the ownership was not set.=

--
=C8=98tefan B=C4=82LU
Tel: +40757 377 489 --047d7b15aacbf898ef04bbfb74a0--