Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 Nov 2007 20:29:53 +0100
From:      Roland Smith <rsmith@xs4all.nl>
To:        Darren Spruell <phatbuckett@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Set perms on attach of USB umass disk
Message-ID:  <20071101192953.GA65305@slackbox.xs4all.nl>
In-Reply-To: <839aec700711011053i3b4d7c7dmbbd5afde03ba513a@mail.gmail.com>
References:  <839aec700711011053i3b4d7c7dmbbd5afde03ba513a@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--y0ulUmNC+osPPQO6
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Nov 01, 2007 at 10:53:00AM -0700, Darren Spruell wrote:
> I've been trying (and failing) to figure out how to adjust ownership
> or permissions of a USB memory stick on device attach.
>
[snip]
> 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;

> What's the right way to handle this?

You'll have to use devfs.rules. See 'man devfs.rules'

The fact that there are two configuration files is a bit confusing. But
that is because of the way removable devices are handled.

Roland
--=20
R.F.Smith                                   http://www.xs4all.nl/~rsmith/
[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)

--y0ulUmNC+osPPQO6
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHKikxEnfvsMMhpyURAn5kAKCOtjvFXRPkuizUAcE8GWgcelEHWQCeNTPa
vqc4anfHzka+dgcIvP56R2g=
=DMoM
-----END PGP SIGNATURE-----

--y0ulUmNC+osPPQO6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071101192953.GA65305>