LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-01-2007, 07:55 AM   #1
serge_shp
LQ Newbie
 
Registered: Dec 2005
Distribution: SuSE 10.2 64 b
Posts: 10

Rep: Reputation: 0
ALSA under non-root


Hello.
Recently I upgraded to the open SUSE 10.2 distribution from 10.x and performed online update of everything. After that there arised a problem with sound driver (I use ALSA):
no sound application can start it if running not from root.It results in the errormesages of the kind:

===
ALSA lib confmisc.c:670snd_func_card_driver) cannot find card '0'
ALSA lib conf.c:3500_snd_config_evaluate) function snd_func_card_driver returned error: No such device
ALSA lib confmisc.c:391snd_func_concat) error evaluating strings
ALSA lib conf.c:3500_snd_config_evaluate) function snd_func_concat returned error: No such device
ALSA lib confmisc.c:1070snd_func_refer) error evaluating name
ALSA lib conf.c:3500_snd_config_evaluate) function snd_func_refer returned error: No such device
ALSA lib conf.c:3968snd_config_expand) Evaluate error: No such device
ALSA lib pcm.c:2143snd_pcm_open_noupdate) Unknown PCM default
snd_pcm_open: No such device (default)
Failed to initialize plugin!
Failed to register plugin: /usr/lib64/alsaplayer/output/libalsa_out.so
Failed to load output plugin "alsa". Trying defaults.
=========

There are no problems in running those applications under root. Evidently one has to change permissions for some alsa init plugin making it run with setuid. But what is that file or how one can reveal the root of the problems?

Of course it is possible to run everything from root or to set the setUid bit to every application of interest (mplayer, xmms, xine,skype...). But there must be some more clean way?
 
Old 03-01-2007, 11:17 AM   #2
gearoid_murphy
Member
 
Registered: Mar 2006
Location: Ireland
Distribution: Debian Etch
Posts: 72

Rep: Reputation: 18
I don't think that setuid is a problem as also runs in the kernel, not as a user process. However, what may be happening is that the permissions on the /dev/dsp are set to root only. /dev/dsp being the device handle for the sound card. Try chmod on that and see what happens. Also, using strace -o strace.out ./sound_test and grepping the file strace.out will show you what files and devices the program is using and could point you in the right direction
 
Old 03-01-2007, 11:40 AM   #3
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Have you tried adding your user to the audio group? Run id command to see which groups the user actually belongs to. If audio is missing, that's the reason.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sarge: how to have ALSA right permissions for users and root ? Xeratul Debian 1 12-24-2006 03:41 PM
Alsa + sound works on root, but not on users! r4f Linux - Software 2 04-02-2005 05:43 AM
alsa permissions for non-root user darkleaf Linux - Software 20 07-22-2004 06:13 AM
ALSA only as root powadha Linux - Software 3 12-26-2003 08:57 AM
Alsa Drivers No sound for non root user ElementNine Linux - Hardware 4 10-01-2003 03:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:46 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
Open Source Consulting | Domain Registration