From owner-freebsd-questions@FreeBSD.ORG Wed Feb 8 22:22:37 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EE856106566B for ; Wed, 8 Feb 2012 22:22:37 +0000 (UTC) (envelope-from Devin.Teske@fisglobal.com) Received: from mx1.fisglobal.com (mx1.fisglobal.com [199.200.24.190]) by mx1.freebsd.org (Postfix) with ESMTP id B8EF78FC13 for ; Wed, 8 Feb 2012 22:22:37 +0000 (UTC) Received: from pps.filterd (ltcfislmsgpa05 [127.0.0.1]) by ltcfislmsgpa05.fnfis.com (8.14.4/8.14.4) with SMTP id q18MIOeg020379; Wed, 8 Feb 2012 16:22:36 -0600 Received: from smtp.fisglobal.com ([10.132.206.15]) by ltcfislmsgpa05.fnfis.com with ESMTP id 12v1qag0fb-2 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Wed, 08 Feb 2012 16:22:36 -0600 Received: from dtwin (10.14.152.15) by smtp.fisglobal.com (10.132.206.15) with Microsoft SMTP Server (TLS) id 14.1.323.3; Wed, 8 Feb 2012 16:22:35 -0600 From: Devin Teske To: "'Ronald F. Guilmette'" , References: <2068.1328738290@tristatelogic.com> In-Reply-To: <2068.1328738290@tristatelogic.com> Date: Wed, 8 Feb 2012 14:22:39 -0800 Message-ID: <069401cce6b0$2e55cfb0$8b016f10$@fisglobal.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQIZrN1dgUk5QtGy179XAXSCEtEvPpWaBaHg Content-Language: en-us X-Originating-IP: [10.14.152.15] X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.6.7361, 1.0.260, 0.0.0000 definitions=2012-02-08_08:2012-02-08, 2012-02-08, 1970-01-01 signatures=0 Cc: Subject: RE: /dev/ulpt0 -- How is it created? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Feb 2012 22:22:38 -0000 > -----Original Message----- > From: owner-freebsd-questions@freebsd.org [mailto:owner-freebsd- > questions@freebsd.org] On Behalf Of Ronald F. Guilmette > Sent: Wednesday, February 08, 2012 1:58 PM > To: freebsd-questions@freebsd.org > Subject: /dev/ulpt0 -- How is it created? > > > It would appear that the device node /dev/ulpt0 gets (re-)created every > time I plug my USB printer back in. > > Could somebody please kindly tell me what the exact mechanism is that > causes this device node to be (re-)created upon such events? > > I am rather hoping that whatever that mechanism is, that I can diddle > it somehow so that every time /dev/ulpt0 gets created, it will be > created with perms set to 0666. > This should do the trick (as root): mkdir -p /etc/devd cd /etc/devd touch ulpt.conf cat >> ulpt.conf << EOF notify 100 { match "system" "DEVFS"; match "subsystem" "CDEV"; match "cdev" "ulpt[0-9]"; match "type" "CREATE"; action "/bin/chmod 666 /dev/$cdev"; }; EOF service devd restart -- Devin _____________ The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.