From owner-freebsd-questions@FreeBSD.ORG Thu Apr 29 21:55:17 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C826C106564A for ; Thu, 29 Apr 2010 21:55:17 +0000 (UTC) (envelope-from mbeis@xs4all.nl) Received: from smtp-vbr5.xs4all.nl (smtp-vbr5.xs4all.nl [194.109.24.25]) by mx1.freebsd.org (Postfix) with ESMTP id 5C18D8FC08 for ; Thu, 29 Apr 2010 21:55:17 +0000 (UTC) Received: from yokozuna.lan (213-84-73-82.adsl.xs4all.nl [80.101.78.208]) by smtp-vbr5.xs4all.nl (8.13.8/8.13.8) with ESMTP id o3TLtBLL071563 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Apr 2010 23:55:16 +0200 (CEST) (envelope-from mbeis@xs4all.nl) Received: from yokozuna.lan (yokozuna.lan [IPv6:::1]) by yokozuna.lan (8.14.4/8.14.4) with ESMTP id o3TLtA8c008117; Thu, 29 Apr 2010 23:55:10 +0200 (CEST) (envelope-from mbeis@xs4all.nl) Date: Thu, 29 Apr 2010 23:55:10 +0200 (CEST) From: Marco Beishuizen Sender: marco@yokozuna.lan To: Warren Block In-Reply-To: Message-ID: References: <20100428182223.GA34355@slackbox.erewhon.net> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: Using a scanner (USB) as user and not as root X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marco Beishuizen List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2010 21:55:17 -0000 On Thu, 29 Apr 2010, Warren Block wrote: > One more problem: there should be a quote at the end of the last line. > > attach 100 { > device-name "ugen[0-9].[0-9]"; > match "vendor" "0x04b8"; > match "product" "0x010a"; > action "usb_devaddr=`echo $device-name | sed 's#^ugen##'` && \ > chown root:saned /dev/usb/${usb_devaddr}.* && \ > chmod 0660 /dev/usb/${usb_devaddr}.*" Shouldn't there be a ; at the end of the action line also? Because every line above ends with it too. I also ended the total attach 100 statement with }; because that seems the case in the rest of devd.conf. To see if these changes work I'll have to reboot later because I'm updating my ports, and this can take a while... Marco -- I was in this prematurely air conditioned supermarket and there were all these aisles and there were these bathing caps you could buy that had these kind of Fourth of July plumes on them that were red and yellow and blue and I wasn't tempted to buy one but I was reminded of the fact that I had been avoiding the beach. -- Lucinda Childs "Einstein On The Beach"