LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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
 
Thread Tools
Old 06-29-2009, 01:32 AM   #1
s2cuts
Member
 
Registered: Mar 2007
Posts: 47
Thanked: 0
Sound working as root, but not as a regular user...


[Log in to get rid of this advertisement]
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.
s2cuts is offline     Reply With Quote
Old 06-29-2009, 02:26 AM   #2
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Sligo, Ireland
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,023
Blog Entries: 1
Thanked: 36
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?
irishbitte is online now     Reply With Quote
Old 06-29-2009, 10:50 AM   #3
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 1,529
Thanked: 74
Sounds like you need to make the regular user(s) part of the audio group.
AlucardZero is offline     Reply With Quote
Old 06-29-2009, 01:05 PM   #4
irishbitte
Senior Member
 
Registered: Oct 2007
Location: Sligo, Ireland
Distribution: Ubuntu Hardy, Ubuntu Jaunty, Eeebuntu, Debian, SME-Server
Posts: 1,023
Blog Entries: 1
Thanked: 36
Aha, there ya go!
Quote:
Sounds like you need to make the regular user(s) part of the audio group.
good man AlucardZero...
irishbitte is online now     Reply With Quote
Old 06-29-2009, 01:28 PM   #5
s2cuts
Member
 
Registered: Mar 2007
Posts: 47
Thanked: 0

Original Poster
Many thanks.
s2cuts is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
Moving from root to regular user KingOfDreams Linux - General 1 01-14-2005 05:46 AM
Given regular user root privileges clo99dx Linux - Newbie 6 06-05-2004 05:27 PM
root apps running on X under regular user?? nny0000 Slackware 3 02-05-2004 03:09 PM
Running root apps in X using regular user? nny0000 Slackware 10 01-15-2004 01:23 PM
can't login as regular user (root only) DontKnowNothing Mandriva 2 10-24-2003 02:36 PM


All times are GMT -5. The time now is 07:45 PM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration