LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Making "/dev/snd/*" read/write for other consistently (https://www.linuxquestions.org/questions/linux-general-1/making-dev-snd-%2A-read-write-for-other-consistently-617261/)

Minozake 01-29-2008 05:35 PM

Making "/dev/snd/*" read/write for other consistently
 
Problem:

My sound does not work, UNLESS I input the command

Code:

[sudo] chmod u+rw /dev/snd/*
Which changes all of the sound devices to read/write. However, whenever I boot up, it automatically resets to make it only root and audio to be able to read/write. I don't think I am actually supposed to have to enable read/write for all users.

Maybe it is the certain setup I have for sound (as I noticed the audio group was a group and it had read-write privileges to it). I actually have no way besides Flash to play sounds after I make the change (mplayer can't even find my devices since it isn't even looking to the correct path, but that's another problem).

I am running Gentoo Linux i686-2.6.19-r5. Perhaps the compatibility issue is where it stores things like input, snd, et al (/dev/input, /dev/snd). Perhaps I should post on Gentoo forums.

But, does anyone know how I can fix this problem?

Uncle_Theodore 01-29-2008 05:39 PM

You just need to include your user into the audio group. Use the usermod command to do that.

Minozake 01-29-2008 06:53 PM

I did that. id username says I am in the audio group. But it doesn't seem to grant permission.

Do the apps the user executes inherit that user's groups?

Uncle_Theodore 01-29-2008 07:31 PM

Quote:

Originally Posted by Minozake (Post 3039370)
I did that. id username says I am in the audio group. But it doesn't seem to grant permission.

Do the apps the user executes inherit that user's groups?

You have to relogin for the changes to take effect. Have you done that?

Minozake 01-29-2008 08:12 PM

Just done. Now it works.

Many thanks ^_~


All times are GMT -5. The time now is 08:03 PM.