From owner-freebsd-questions Sun Jan 26 19:18:53 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 3868337B401 for ; Sun, 26 Jan 2003 19:18:52 -0800 (PST) Received: from wabakimi.chat.carleton.ca (wabakimi.chat.carleton.ca [134.117.1.98]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44D7243ED8 for ; Sun, 26 Jan 2003 19:18:51 -0800 (PST) (envelope-from creyenga@connectmail.carleton.ca) Received: from fireball (resnet-89-057.cavern.carleton.ca [134.117.89.57]) by wabakimi.chat.carleton.ca (8.11.1/8.11.1) with SMTP id h0R3Ifk12709; Sun, 26 Jan 2003 22:18:41 -0500 (EST) Message-ID: <001201c2c5b2$d34c51c0$0200000a@sewer.org> From: "Craig Reyenga" To: "Anand Buddhdev" Cc: References: <20030127030941.GU9710@anand.org> Subject: Re: playing CDs as non-root user Date: Sun, 26 Jan 2003 22:18:55 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 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 > I've got my FreeBSD system setup with KDE and sound. I have 2 questions: > > 1. I got sound to work simply by doing "kldload snd" but then I did > kldstat and saw that all available sound modules had been loaded. I > thought that was unnecessary - is there any way (besides inserting > each module one at a time) that I can determine which exact module is > providing the driver for my sound card? > Try typing 'dmesg | grep pcm0' and see what shows up. You should then be able to narrow it down. Do note that some are common between (almost?) all cards, such as snd_pcm.ko. > 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. -Craig P.S. Sorry if this is out to lunch. > -- > Anand Buddhdev > http://anand.org > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message