LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-12-2004, 02:40 PM   #1
Stomatella
LQ Newbie
 
Registered: Dec 2002
Location: US
Distribution: FC5
Posts: 22

Rep: Reputation: 15
alsa sound permissions


I am running FC3, and have a question regarding sound:

Unless I am logged in as root, I am unable to hear any sound from any applications. This can be fixed by changing permissions on /dev/snd/*, /dev/mixer, and /dev/dsp thusly:

chmod o+rw /dev/dsp /dev/mixer /dev/snd/*

This allows me to run alsamixer (my preferred mixer) and to hear sound from various apps. It also allows me to use gnome-volume-control to set the system volume.

However, on reboot, the permissions on /dev/dsp /dev/mixer, and /dev/snd/* have been reset to disallow read and write access to anyone but root, requiring that I go through the chmod rigamarole AGAIN. What is causing this behavior, and how can I prevent it?

Thanks for any advice you can offer!

Rob
 
Old 12-12-2004, 05:59 PM   #2
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
It sounds like you may be using udev. I think there are two ways to fix it. You can edit /etc/udev/udev.permissions (it may be in a slighly different place on your distro) and change the lines that talk about the sound nodes so that they have permissions 0666

snd/*:root:audio:0666
admmidi*:root:audio:0666
adsp*:root:audio:0666
and so on.

Or you can add yourself (and any other users who need to have access to the audio nodes) to the audio group. This is probably the best (safest) way to go.

usermod -g $GROUP -G audio $USER
where $GROUP is your normal group (probably users or suchlike) and $USER is your username. Read man usermod to check I've got it right. Have to be root to run that command. There may be a fancy GUI to do those things on your distro but I wouldn't know. To find out what groups you're in before you start use the groups command.
groups $USER
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Alsa sound *jumpy*: alsa-space: xrun of at least 11.449 msecs. resetting stream qwijibow Linux - General 6 04-22-2006 07:35 PM
ALSA not working for Creative Sound Blaster Live 24 Bit sound card vishalsonu Linux - Hardware 7 08-20-2005 01:02 PM
[ALSA 1.0.9b-4] No more sound, no more alsa-utils package Creak Debian 5 08-18-2005 04:22 PM
alsa permissions for non-root user darkleaf Linux - Software 20 07-22-2004 06:13 AM
ALSA Permissions ..... CryptDragoon Slackware 2 02-02-2004 10:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:14 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration