From owner-freebsd-questions Mon Jan 27 7:11: 1 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3C38737B401 for ; Mon, 27 Jan 2003 07:11:00 -0800 (PST) Received: from rwcrmhc52.attbi.com (rwcrmhc52.attbi.com [216.148.227.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9546E43ED8 for ; Mon, 27 Jan 2003 07:10:59 -0800 (PST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com[24.147.188.198]) by rwcrmhc52.attbi.com (rwcrmhc52) with ESMTP id <20030127151058052007lf65e>; Mon, 27 Jan 2003 15:10:58 +0000 Received: from be-well.ilk.org (lowellg.ne.client2.attbi.com [24.147.188.198] (may be forged)) by be-well.ilk.org (8.12.6/8.12.6) with ESMTP id h0RFAvtm060009 for ; Mon, 27 Jan 2003 10:10:57 -0500 (EST) (envelope-from freebsd-questions-local@be-well.no-ip.com) Received: (from lowell@localhost) by be-well.ilk.org (8.12.6/8.12.6/Submit) id h0RFAvjq060006; Mon, 27 Jan 2003 10:10:57 -0500 (EST) X-Authentication-Warning: be-well.ilk.org: lowell set sender to freebsd-questions-local@be-well.ilk.org using -f To: freebsd-questions@freebsd.org Subject: Re: playing CDs as non-root user References: <20030127030941.GU9710@anand.org> <001201c2c5b2$d34c51c0$0200000a@sewer.org> From: Lowell Gilbert Date: 27 Jan 2003 10:10:57 -0500 In-Reply-To: <001201c2c5b2$d34c51c0$0200000a@sewer.org> Message-ID: <448yx6ljb2.fsf@be-well.ilk.org> Lines: 20 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "Craig Reyenga" writes: > > 2. I can play a music CD just fine as root, using cdcontrol, as described > > in the handbook. But under KDE, running as a non-root user, I cannot > > play music CDs. I looked at the permissions on /dev/acd0c, and they are > > 0640, root.operator, so an ordinary user cannot read the CD. I changed > > the permissions to 0644, and I could play the CD. However, there must > > be a good reason for the permisisons to be 0640, and I don't want to > > mess up the permissions just to get the CD player to work. What is the > > "official" way to get this to work? The handbook didn't mention it. > > > > That's probably the best way to do it, believe it or not. To have it work on > bootup in 5.X, try editing /etc/rc.devfs (I think), or in 4.X try editing > /etc/rc.local to say "chmod 644 /dev/acd0c" (I think). It may not require > anything after doing it once in 4.X. The slightly more secure approach is to use fbtab(5) (or Xsetup) to give the console user the ownership of the device. If it's really a single-user machine, this may not be worth the effort. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message