LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 07-14-2003, 06:15 PM   #1
XPediTioN
Member
 
Registered: Jun 2003
Location: Illinois
Distribution: Slackware 9.1
Posts: 305

Rep: Reputation: 30
Sound Problems


When I insert a CD and start a cd player program, it says wrong driver and it doesn't play it. Why?
 
Old 07-14-2003, 07:00 PM   #2
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 52
Does it work as root? I'm guessing yes.

What I did was create a new group called "cdrom", changed the group ownership of the device file corresponding to my cdrom drive to "cdrom", and added group "cdrom" as one of my supplementary groups.

Lyle
 
Old 07-14-2003, 07:08 PM   #3
XPediTioN
Member
 
Registered: Jun 2003
Location: Illinois
Distribution: Slackware 9.1
Posts: 305

Original Poster
Rep: Reputation: 30
Can you explain how to do it step by step?
 
Old 07-15-2003, 12:01 AM   #4
lyle_s
Member
 
Registered: Jul 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 52
Quote:
Originally posted by XPediTioN
Can you explain how to do it step by step?
Sure, here's an example of how to do it (I hope we're solving the right problem).

Let's say for example you want user "fred" to be able to play CDs.

1. Log in as root.
root@poole#

2. Add a new group called "cdrom":
root@poole# groupadd cdrom

3. Change the group ownership of your cdrom drive to that new group, i.e. "cdrom":
root@poole# chown --dereference root.cdrom /dev/cdrom

4. Figure out which groups "fred" is a member of:
root@poole# groups fred
fred : users sys

"users" is "fred"'s initial login group. In this example, "fred" has a supplementary group "sys".

5. Add "cdrom" to "fred"'s existing list of supplementary groups. The usermod command's -G option will remove "fred" from any supplementatry groups he is a member of if we don't list it--so we have to list "sys" in our example:
root@poole# usermod -G sys,cdrom fred

OR, if "fred" had no supplementary groups, that is, no group other than "users", simply:
root@poole# usermod -G cdrom fred

6. Ensure we see cdrom somewhere in "fred"'s list of groups:
root@poole# groups fred
fred : users sys cdrom

OR, if "fred" had no supplementary groups before:
root@poole# groups fred
fred : users cdrom

"fred" can now play CDs to his heart's content, even if he's logged in remotely (which is the kind of situation that the default setup tries to prevent).

There are simpler ways of achieving something similar, but this way you retain control of who can play CDs.

Lyle

Last edited by lyle_s; 07-15-2003 at 12:07 AM.
 
Old 07-15-2003, 11:09 AM   #5
XPediTioN
Member
 
Registered: Jun 2003
Location: Illinois
Distribution: Slackware 9.1
Posts: 305

Original Poster
Rep: Reputation: 30
Is there another way to do that?
 
Old 07-15-2003, 11:11 AM   #6
XPediTioN
Member
 
Registered: Jun 2003
Location: Illinois
Distribution: Slackware 9.1
Posts: 305

Original Poster
Rep: Reputation: 30
If you need more information go to the Slackware Problems Thread
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sound Problems: CD works, no system/mp3/video sound tabnaka Suse/Novell 5 01-13-2006 12:33 PM
Sound Blaster Sound Card problems idioticneophyte Linux - Hardware 17 02-01-2005 04:02 AM
sound problems and wine sound problems derfaust Linux - Software 1 07-23-2004 03:45 AM
Problems getting sound to play under Mandrake w/2 sound cards HGeneAnthony Linux - Hardware 1 07-02-2004 02:19 PM
Problems with OSS while trying to avoid problems in ALSA (scratchy sound) GT_Onizuka Linux - General 1 02-05-2004 11:55 PM


All times are GMT -5. The time now is 02:45 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration