Date: Fri, 11 Apr 2008 09:36:40 -0700 From: "Loren M. Lang" <lorenl@north-winds.org> To: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: USB Flash Drive Permissions Message-ID: <20080411163640.GA18928@alzatex.com>
next in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080411163640.GA18928>