LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Sound Problems (https://www.linuxquestions.org/questions/slackware-14/sound-problems-72729/)

XPediTioN 07-14-2003 06:15 PM

Sound Problems
 
When I insert a CD and start a cd player program, it says wrong driver and it doesn't play it. Why?

lyle_s 07-14-2003 07:00 PM

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

XPediTioN 07-14-2003 07:08 PM

Can you explain how to do it step by step?

lyle_s 07-15-2003 12:01 AM

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

XPediTioN 07-15-2003 11:09 AM

Is there another way to do that?

XPediTioN 07-15-2003 11:11 AM

If you need more information go to the Slackware Problems Thread


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