From owner-freebsd-questions@FreeBSD.ORG Fri Apr 11 16:36:43 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 D3740106564A for ; Fri, 11 Apr 2008 16:36:43 +0000 (UTC) (envelope-from lorenl@north-winds.org) Received: from hosea.tallye.com (unknown [IPv6:2002:d863:c74e::104]) by mx1.freebsd.org (Postfix) with ESMTP id 6EE908FC12 for ; Fri, 11 Apr 2008 16:36:43 +0000 (UTC) (envelope-from lorenl@north-winds.org) Received: from hosea.tallye.com (localhost [127.0.0.1]) by hosea.tallye.com (8.14.1/8.13.6) with ESMTP id m3BGaeS4019122 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 11 Apr 2008 09:36:40 -0700 Authentication-Results: hosea.tallye.com from=lorenl@north-winds.org; sender-id=fail (NotPermitted); spf=fail (NotPermitted) X-SenderID: Sendmail Sender-ID Filter v0.2.14 hosea.tallye.com m3BGaeS4019122 DomainKey-Signature: a=rsa-sha1; s=main; d=north-winds.org; c=nofws; q=dns; h=received:date:from:to:subject:message-id:mime-version: content-type:content-disposition:user-agent:x-gpg-key: x-gpg-fingerprint:x-greylist:received-spf:x-virus-scanned:x-virus-status; b=QvBXNMmzZfCCFqgTn5p4po3PMaFWp7xZxGi1yuCHLbaWrzVNZiH6Rg9NZ/mwfAYqq f7zsF7rEz4rKDejExWMD+uLm+tWPfdWKwOG6vDd+pNE2jEf6+lNkKUMI4Iyh2Xd Received: (from sttng359@localhost) by hosea.tallye.com (8.14.1/8.13.6/Submit) id m3BGaeqH019121 for freebsd-questions@freebsd.org; Fri, 11 Apr 2008 09:36:40 -0700 Date: Fri, 11 Apr 2008 09:36:40 -0700 From: "Loren M. Lang" To: FreeBSD Questions Message-ID: <20080411163640.GA18928@alzatex.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="2oS5YaxWCcQjTEyO" Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-GPG-Key: ftp://ftp.north-winds.org/pub/lorenl_pubkey.asc X-GPG-Fingerprint: B3B9 D669 69C9 09EC 1BCD 835A FAF3 7A46 E4A3 280C X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (hosea.tallye.com [127.0.0.1]); Fri, 11 Apr 2008 09:36:40 -0700 (PDT) Received-SPF: pass (hosea.tallye.com: localhost is always allowed.) X-Virus-Scanned: ClamAV version 0.90.3, clamav-milter version 0.90.3 on hosea.tallye.com X-Virus-Status: Clean Subject: 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 16:36:43 -0000 --2oS5YaxWCcQjTEyO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable I would like to setup my USB flash drive to have special permissions when I plug it into my desktop. Specifically, I would like it to be owned by my user so I can user mount the msdos fs on it. I added an entry to /etc/devfs.conf for the device it was creating, but the permissions did not get applied when I plugged my drive in. After some research, it appears that devfs.conf only gets applied on boot by /etc/rc.d/devfs so I took a look at devd. 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,) however, I did not see any information on the device file it created, da0s1, when I need to modify the permissions on. How can I determine automatically where umass0 created it's disk device file? --=20 Loren M. Lang lorenl@north-winds.org http://www.north-winds.org/ Public Key: ftp://ftp.north-winds.org/pub/lorenl_pubkey.asc Fingerprint: 10A0 7AE2 DAF5 4780 888A 3FA4 DCEE BB39 7654 DE5B =20 --2oS5YaxWCcQjTEyO Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFH/5OX3O67OXZU3lsRAhI0AJ4tgTQSh0mXNOqIkiqMxI88ubi0zgCeMhDY OoDnpspwM/5i9qtyF2xGWT0= =SPR4 -----END PGP SIGNATURE----- --2oS5YaxWCcQjTEyO--