How-to change permission on SCSI devices?

Roland Smith rsmith at xs4all.nl
Sat May 7 04:55:53 PDT 2005


On Sat, May 07, 2005 at 01:36:11PM +0200, Marc Fonvieille wrote:
> On Sat, May 07, 2005 at 11:39:16AM +0200, regisr wrote:
> > I am looking for a FAQ about dynamic devices:
> > In 5.3 (and 5.4..) SCSI devices nodes (/dev/pass*) are created when
> > discovered (at boot or when running "camcontrol rescan ... " )
> > How to change the permissions on the /dev/pass* ? (not manualy of
> > course ;-) 
> > OK, I can wrote a shell for this but if there is a less dirty
> > possibility...
> 
> You have to use devfs(8) facility (man devfs).

Anything that exists at boot time can be configured (ownership,
permissions and links) in /etv/devfs.conf. Stuff like USB that can be
hotplugged should be configured in /etc/devfs.rules for ownership and
permissions and in /etc/usbd.conf for attach and detach events.

There are no official manual pages yet for devfs.conf and
devfs.rules. You can find the ones I've submitted at
http://www.xs4all.nl/~rsmith/freebsd/

Roland
-- 
R.F. Smith                           /"\    ASCII Ribbon Campaign
r s m i t h @ x s 4 a l l . n l      \ /    No HTML/RTF in e-mail
http://www.xs4all.nl/~rsmith/         X     No Word docs in e-mail
public key: http://www.keyserver.net / \    Respect for open standards
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050507/1db5212a/attachment.bin


More information about the freebsd-questions mailing list