From owner-freebsd-current@FreeBSD.ORG Wed Nov 3 12:10:52 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0A09616A4CE for ; Wed, 3 Nov 2004 12:10:52 +0000 (GMT) Received: from vbook.fbsd.ru (asplinux.ru [195.133.213.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05B0F43D2D for ; Wed, 3 Nov 2004 12:10:49 +0000 (GMT) (envelope-from vova@vbook.fbsd.ru) Received: from vova by vbook.fbsd.ru with local (Exim 4.42 (FreeBSD)) id 1CP6F3-0000cB-3l; Wed, 03 Nov 2004 00:31:01 +0300 From: Vladimir Grebenschikov To: Rob In-Reply-To: <41878CA3.8050207@yahoo.com> References: <41878CA3.8050207@yahoo.com> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: SWsoft Date: Wed, 03 Nov 2004 00:31:00 +0300 Message-Id: <1099431060.1227.24.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.0.0FreeBSD GNOME Team Port Sender: Vladimir Grebenschikov cc: freebsd-current Subject: Re: 5.3: how to make /dev/acd0 world readable? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: vova@fbsd.ru List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Nov 2004 12:10:52 -0000 =F7 =D7=D4, 02/11/2004 =D7 22:33 +0900, Rob =D0=C9=DB=C5=D4: > Hi, >=20 > ls /dev/acd0 says: >=20 > crw-r----- root operator 4, 12 Nov 2 00:27 /dev/acd0 >=20 > For my cd-player, I need it at least to be world readable. >=20 > But /dev is a funny directory on 5.3, quite different from 4.10 case. > How can I do that? # pw group add cd # cat >> /etc/devfs.rules=20 [devfsrules_common=3D7] add path 'acd*' mode 660 group cd add path 'cd*' mode 660 group cd add path 'pass*' mode 660 group cd add path 'xpt*' mode 660 group cd ^D # echo 'devfs_system_ruleset=3D"devfsrules_common"' >> /etc/rc.conf # /etc/rc.d/devfs restart # then put all required users to group cd, or just change 660 to any acceptable to you permission bits (say 664) be care, access to xpt* can compromise any SCSI device on related CAM bus, frankly speaking pass* and xpt* is required for writing CD/DVD with cdrecord, if you have ATAPI CDROM and do not pan use atapicam you need only acd* entry. (really not sure about /etc/rc.d/devfs restart - never tried it, but should work) also, this solution will work for plugable cd crives (pccard/firewire/usb/scsi/whatever...) also 'man 8 devfs' - is not bad place to start > Rob. PS:=20 to all, we need better documentation for /etc/devfs.ruleset file. --=20 Vladimir B. Grebenchikov vova@fbsd.ru