From owner-freebsd-questions@FreeBSD.ORG Thu Nov 1 20:53:59 2007 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 3C80016A41A for ; Thu, 1 Nov 2007 20:53:59 +0000 (UTC) (envelope-from phatbuckett@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.180]) by mx1.freebsd.org (Postfix) with ESMTP id 0CAD213C4A6 for ; Thu, 1 Nov 2007 20:53:58 +0000 (UTC) (envelope-from phatbuckett@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so771730waf for ; Thu, 01 Nov 2007 13:53:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=D/kb7DOoynE5FUOlzhWPIgYVuLqa3mnSnCIHdt0UJQ8=; b=pfcoP1dGFaBF8cKEvBR9WOdzxqFw8+7pUjbkjr+FfSVGQTmjokDXMwAFYZzIsV4kT1zeAWrSS3YbQAamcLv5Q+xEeKVOrzQpGixT9pJfikFHHzTKHw11OgbRc07HX5TLFNPN0ESDCGYqTYA5tfuIewCRjxoqUZjngItvIaQrLuc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=H5DlNqKIloJs7K9FY3O5IK9ZWRRIiwpkfrDAIMlNC6U4mQrlIhIKz+vx/1wajARDo+9yJ70CfqqClhoH2YUTe9u84o6sCBniMR7I7doh7yD4GZ2UwB5cQYtB1O8pq27rJvEqhbAt0ij/lsRmbM8YKJqYwuBvoLd7xPKl4sYqeU8= Received: by 10.114.107.19 with SMTP id f19mr1048530wac.1193950412642; Thu, 01 Nov 2007 13:53:32 -0700 (PDT) Received: by 10.114.153.20 with HTTP; Thu, 1 Nov 2007 13:53:32 -0700 (PDT) Message-ID: <839aec700711011353x109b4ec6jaa3988160052849f@mail.gmail.com> Date: Thu, 1 Nov 2007 13:53:32 -0700 From: "Darren Spruell" To: freebsd-questions@freebsd.org In-Reply-To: <20071101192953.GA65305@slackbox.xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <839aec700711011053i3b4d7c7dmbbd5afde03ba513a@mail.gmail.com> <20071101192953.GA65305@slackbox.xs4all.nl> Subject: Re: Set perms on attach of USB umass disk 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: Thu, 01 Nov 2007 20:53:59 -0000 > > I've tried altering devfs.conf but this appears to only work for > > devices that are attached at startup of devfs. > [snip] > > As a matter of fact, this is documented in the devfs.conf manual page. > This will also tell you where to look; Yep: "It does not work for devices plugged in and out after the system is up and running, e.g. USB devices. See devfs.rules(5) for setting ownership and permissions for all device nodes, and usbd.conf(5) for actions to be taken when USB devices are attached or detached." I overlooked that for some reason. :( > create a new file /etc/devfs.rules with contents > > [system=10] > add path 'da*' mode 660 group operator > > Then in /etc/rc.conf add > devfs_system_ruleset="system" > and restart devfs (/etc/rc.d/devfs restart) Works great, thanks. -- Darren Spruell phatbuckett@gmail.com