SOLVED: Fedora 6 - Dell Dimension 8300 - Creative Audigy sound card. Multiuser trouble..

Harald_Jensas at Dell.com Harald_Jensas at Dell.com
Sun Nov 12 02:42:08 CST 2006


________________________________

From: Victor Lowther [mailto:victor.lowther at gmail.com]
Sent: Sat 11/11/2006 8:25 PM
To: Jensas, Harald
Subject: Re: Fedora 6 - Dell Dimension 8300 - Creative Audigy sound card. Multiuser trouble..


On 11/11/06, Harald_Jensas at dell.com <Harald_Jensas at dell.com> wrote: 

	Hi,
	
	I have been running FC 6 for a couple of weeks now and I am quite happy with it. 
	However, there is an issue that I can't get fixed..
	
	I have set up 2 user accounts on the system, and the problem is that only the first user to start a KDE or Gnome session is able to play sound. I also noticed that this is not the case for root. 
	
	I figured this must be some kind of permissions in the /dev folder.
	I had a look and noticed that several device nodes are created for sound, and all of them get the following permissions:
	
	crw------- username root audio 


pam_console is what reassigns ownership of those nodes in FC6 -- it does so whenever a user logs in via login on a console TTY or a local (g|x|k)dm process.

man pam_console should give you more info, and the file /etc/security/console.perms will show you te default permissions applied to devices whose permissions are controlled by pam_console.

(this is all from memory dealing with older versions of fedora, gentoo, and Ubuntu, but should give you a place to start)


Victor Lowther


 

________________________________

Thanks Victor, this was it! 

 After changing pam_console settings like this:
[root at c-15b1e055 ~]# cat /etc/security/console.perms.d/50-default.perms
<edited>
# permission definitions
<console>  0660 <sound>      0660 root.audio
<edited>

The device nodes get the following permissions/group settings:
[root at c-15b1e055 ~]# ls -l /dev/ | grep audio
crw-rw---- 1 root   audio  14,   14 Nov 12 09:12 admmidi
crw-rw---- 1 harald audio  14,   12 Nov 12 09:12 adsp
crw-rw---- 1 root   audio  14,   13 Nov 12 09:12 amidi
crw-rw---- 1 harald audio  14,    4 Nov 12 09:12 audio
crw-rw---- 1 root   audio  14,    9 Nov 12 09:12 dmmidi
crw-rw---- 1 harald audio  14,    3 Nov 12 09:12 dsp
crw-rw---- 1 harald audio  14,    2 Nov 12 09:12 midi
crw-rw---- 1 harald audio  14,    0 Nov 12 09:12 mixer
crw-rw---- 1 harald audio  14,    1 Nov 12 09:12 sequencer
crw-rw---- 1 harald audio  14,    8 Nov 12 09:12 sequencer2

 
And I am able to open a new session, log in with a different user and still be able to play sounds.
 
 
Mvh/Regards
Harald Jensås
 



More information about the Linux-Desktops mailing list