Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Aug 2004 18:06:24 -0400
From:      Anish Mistry <mistry.7@osu.edu>
To:        freebsd-questions@freebsd.org
Cc:        Sean McNeil <sean@mcneil.com>
Subject:   Re: usb device permissions
Message-ID:  <200408251806.32606.mistry.7@osu.edu>
In-Reply-To: <1093462799.2172.5.camel@server.mcneil.com>
References:  <1093462799.2172.5.camel@server.mcneil.com>

next in thread | previous in thread | raw e-mail | index | archive | help
=2D----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 25 August 2004 03:39 pm, Sean McNeil wrote:
> Hi,
>
> I'm using -CURRENT and looking for an easy way to get it to change the
> permissions to a usb device when plugged in.  I know I can change things
> on startup with devfs.conf, but what do I do for usb?
>
> It is a umass device that creates da0 and da0s.  I've tried to put in
> usbd.conf
>
> device "Storage"
>  device "da.*"
>  attach "/bin/chmod 0666 /dev/${DEVNAME}"
>
> but no joy.
>
> I've also tried a rule for devfs by creating /etc/devfs.rules with
>
> add path "da*" mode 0666
>
> same result.
>
> Could someone help me figure this one out?
>
> Thanks,
> Sean
>
/etc/devfs.rules:
[system=3D10]
add path 'da*' mode 0660

and add the following line to /etc/rc.conf:
devfs_system_ruleset=3D"system"

=2D --=20
Anish Mistry
=2D----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBLQ1nxqA5ziudZT0RAvMnAJ0Z+8YIuiquqRFJ68Cf+LE9yzw79wCfRO/q
4C0YVFO7XTIKLQJ7Ul2xgG8=3D
=3DV9B9
=2D----END PGP SIGNATURE-----



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