From owner-freebsd-questions@FreeBSD.ORG Fri Apr 11 21:09:20 2008 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 15D531065674 for ; Fri, 11 Apr 2008 21:09:20 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from igloo.linux.gr (igloo.linux.gr [62.1.205.36]) by mx1.freebsd.org (Postfix) with ESMTP id 7F9F28FC29 for ; Fri, 11 Apr 2008 21:09:19 +0000 (UTC) (envelope-from keramida@ceid.upatras.gr) Received: from kobe.laptop (adsl44-27.kln.forthnet.gr [77.49.171.27]) (authenticated bits=128) by igloo.linux.gr (8.14.2/8.14.2/Debian-3) with ESMTP id m3BL8usO010579 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 12 Apr 2008 00:09:05 +0300 Received: from kobe.laptop (kobe.laptop [127.0.0.1]) by kobe.laptop (8.14.2/8.14.2) with ESMTP id m3BL8tEL002098; Sat, 12 Apr 2008 00:08:55 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from keramida@localhost) by kobe.laptop (8.14.2/8.14.2/Submit) id m3BL8rTU002097; Sat, 12 Apr 2008 00:08:53 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) From: Giorgos Keramidas To: "Loren M. Lang" References: <20080411163640.GA18928@alzatex.com> <20080411173025.GA79540@slackbox.xs4all.nl> Date: Sat, 12 Apr 2008 00:08:53 +0300 In-Reply-To: <20080411173025.GA79540@slackbox.xs4all.nl> (Roland Smith's message of "Fri, 11 Apr 2008 19:30:25 +0200") Message-ID: <87r6dc6qvu.fsf@kobe.laptop> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-MailScanner-ID: m3BL8usO010579 X-Hellug-MailScanner: Found to be clean X-Hellug-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-3.909, required 5, autolearn=not spam, ALL_TRUSTED -1.80, AWL 0.49, BAYES_00 -2.60) X-Hellug-MailScanner-From: keramida@ceid.upatras.gr X-Spam-Status: No Cc: FreeBSD Questions Subject: Re: USB Flash Drive Permissions 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: Fri, 11 Apr 2008 21:09:20 -0000 On Fri, 11 Apr 2008 19:30:25 +0200, Roland Smith wrote: > For setting permissions on hotpluggable device nodes, you need to look > at devfs.rules. See > http://www.xs4all.nl/~rsmith/freebsd/index.html#hotplug Excellent stuff :) >> I catted the pipe of devd and saw my device attach as umass0 with a >> serial number that would be ideal to match on (I'd prefer that it >> only match on my personal flash drive,) > > Normally, a da device gets the first available number. This way you > cannot tell which device node your flash drive will get. You will need > a to set a label on the flash drive. The tool newfs_msdos or the > mtools port can do that for you. Next time you plug the device in you > will find it as /dev/msdosfs/