From owner-freebsd-questions@FreeBSD.ORG Tue Feb 12 16:01:29 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 57DDA4BB for ; Tue, 12 Feb 2013 16:01:29 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) by mx1.freebsd.org (Postfix) with ESMTP id F14EADD0 for ; Tue, 12 Feb 2013 16:01:28 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.6/8.14.6) with ESMTP id r1CG1Put035588; Tue, 12 Feb 2013 09:01:25 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.6/8.14.6/Submit) with ESMTP id r1CG1LcS035585; Tue, 12 Feb 2013 09:01:22 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 12 Feb 2013 09:01:21 -0700 (MST) From: Warren Block To: Polytropon Subject: Re: Chmod of /dev/ulptN In-Reply-To: <20130212133647.a92423a6.freebsd@edvax.de> Message-ID: References: <30480.1360636392@server1.tristatelogic.com> <20130212133647.a92423a6.freebsd@edvax.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (wonkity.com [127.0.0.1]); Tue, 12 Feb 2013 09:01:25 -0700 (MST) Cc: freebsd-questions@freebsd.org, "Ronald F. Guilmette" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2013 16:01:29 -0000 On Tue, 12 Feb 2013, Polytropon wrote: > On Mon, 11 Feb 2013 18:33:12 -0800, Ronald F. Guilmette wrote: >> I exactly followed the directions here: >> >> http://lists.freebsd.org/pipermail/freebsd-questions/2012-February/238118.html >> >> Nontheless, my /dev/lpt0 node still only has permissions set to 0644. > > In the subject you've mentioned /dev/ulpt (USB LPT port), and > now /dev/lpt (conventional LPT port), still the same applies > for both. Actually, the standard devfs.conf settings do not work for dynamic devices like ulpt0. devd is the only way to do that for dynamic devices. Here's an example I use use for a USB printer. The vendor and product IDs were determined with usbconfig dump_device_desc: # WB # link Epson R200 printer to /dev/ulpt-r200 and unlpt-r200 attach 20 { device-name "ulpt[0-9]"; match "vendor" "0x04b8"; match "product" "0x0005"; action "ln -sf /dev/$device-name /dev/ulpt-r200"; action "ln -sf /dev/`echo $device-name \ | sed -e 's/ulpt/unlpt/'` /dev/unlpt-r200"; action "chmod g+w /dev/ulpt-r200 /dev/unlpt-r200"; }; # WB detach 20 { device-name "ugen[0-9].[0-9]"; match "vendor" "0x04b8"; match "product" "0x0005"; action "rm -f /dev/ulpt-r200 /dev/unlpt-r200"; };