LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-29-2009, 12:32 AM   #1
s2cuts
Member
 
Registered: Mar 2007
Posts: 61

Rep: Reputation: 18
Sound working as root, but not as a regular user...


I'm trying to get Debian 5 with LXDE up and running.

Sound is working for root after installing alsa packages, and configuring with:
Code:
alsaconf
alsactl store
speaker-test
speaker-test produces sound from the speakers when logged in as root from a terminal window.

No sound is, however, produced as a regular user. Running speaker-test as a regular user produces the following output at a terminal window:
Code:
ALSA lib confmisc.c:768:(parse_card) cannot find card '0'
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory
ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory
ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name
ALSA lib conf.c:3513:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:3985:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2144:(snd_pcm_open_noupdate) Unknown PCM default
It doesn't seem as though the regular user is able to see the sound driver. The alsaconf script checks for root privileges and won't run otherwise. Any ideas?

Thanks a bunch.
 
Old 06-29-2009, 01:26 AM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 87
If you run
Code:
id
as a regular user, you can see the group memberships of the user? It may be beneficial to run the alsa daemon as an unprivileged user, maybe called alsa-daemon, and add the regular users to it's group?
 
Old 06-29-2009, 09:50 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Sounds like you need to make the regular user(s) part of the audio group.
 
Old 06-29-2009, 12:05 PM   #4
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Brighton, UK
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,213
Blog Entries: 1

Rep: Reputation: 87
Aha, there ya go!
Quote:
Sounds like you need to make the regular user(s) part of the audio group.
good man AlucardZero...
 
Old 06-29-2009, 12:28 PM   #5
s2cuts
Member
 
Registered: Mar 2007
Posts: 61

Original Poster
Rep: Reputation: 18
Many thanks.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving from root to regular user KingOfDreams Linux - General 1 01-14-2005 04:46 AM
Given regular user root privileges clo99dx Linux - Newbie 6 06-05-2004 04:27 PM
root apps running on X under regular user?? nny0000 Slackware 3 02-05-2004 02:09 PM
Running root apps in X using regular user? nny0000 Slackware 10 01-15-2004 12:23 PM
can't login as regular user (root only) DontKnowNothing Mandriva 2 10-24-2003 01:36 PM

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

All times are GMT -5. The time now is 04:23 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration