From owner-freebsd-questions@FreeBSD.ORG Wed Aug 25 23:20:45 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2A2A216A4CE for ; Wed, 25 Aug 2004 23:20:45 +0000 (GMT) Received: from mail.mcneil.com (rrcs-west-24-199-45-54.biz.rr.com [24.199.45.54]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0EE043D5C for ; Wed, 25 Aug 2004 23:20:40 +0000 (GMT) (envelope-from sean@mcneil.com) Received: from localhost (localhost.mcneil.com [127.0.0.1]) by mail.mcneil.com (Postfix) with ESMTP id 2978EFD099; Wed, 25 Aug 2004 16:20:40 -0700 (PDT) Received: from mail.mcneil.com ([127.0.0.1]) by localhost (server.mcneil.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00593-08; Wed, 25 Aug 2004 16:20:39 -0700 (PDT) Received: from [24.199.45.54] (mcneil.com [24.199.45.54]) by mail.mcneil.com (Postfix) with ESMTP id ABE9DFD026; Wed, 25 Aug 2004 16:20:39 -0700 (PDT) From: Sean McNeil To: Anish Mistry In-Reply-To: <200408251806.32606.mistry.7@osu.edu> References: <1093462799.2172.5.camel@server.mcneil.com> <200408251806.32606.mistry.7@osu.edu> Content-Type: text/plain Message-Id: <1093476039.31251.0.camel@server.mcneil.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Wed, 25 Aug 2004 16:20:39 -0700 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at mcneil.com cc: freebsd-questions@freebsd.org Subject: Re: usb device permissions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 23:20:45 -0000 On Wed, 2004-08-25 at 15:06, Anish Mistry wrote: > On Wednesday 25 August 2004 03:39 pm, Sean McNeil wrote: > > Hi, > > > > I'm using -CURRENT and looking for an easy way to get it to change the > > permissions to a usb device when plugged in. I know I can change things > > on startup with devfs.conf, but what do I do for usb? > > > > It is a umass device that creates da0 and da0s. I've tried to put in > > usbd.conf > > > > device "Storage" > > device "da.*" > > attach "/bin/chmod 0666 /dev/${DEVNAME}" > > > > but no joy. > > > > I've also tried a rule for devfs by creating /etc/devfs.rules with > > > > add path "da*" mode 0666 > > > > same result. > > > > Could someone help me figure this one out? > > > > Thanks, > > Sean > > > /etc/devfs.rules: > [system=10] > add path 'da*' mode 0660 > > and add the following line to /etc/rc.conf: > devfs_system_ruleset="system" Perfect. Thanks for the quick solution. Sean