Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
alsa/snd permission
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
pactoo
Guru
Guru


Joined: 18 Jul 2004
Posts: 553

PostPosted: Thu Oct 28, 2004 7:50 pm    Post subject: alsa/snd permission Reply with quote

Hello,

I do not really understand the way /dev/snd/* gets is permissions.

After rebooting, /dev/snd/* looks like this, which is correct:
Code:

crw-------  1 root audio 116,  0 28. Okt 2004  controlC0
crw-rw----  1 root audio 116, 32 28. Okt 21:41 controlC1
crw-rw----  1 root audio 116, 24 28. Okt 21:41 pcmC0D0c
crw-rw----  1 root audio 116, 16 28. Okt 21:41 pcmC0D0p
crw-rw----  1 root audio 116, 56 28. Okt 21:41 pcmC1D0c
crw-rw----  1 root audio 116, 48 28. Okt 21:41 pcmC1D0p
crw-rw----  1 root audio 116, 57 28. Okt 21:41 pcmC1D1c
crw-rw----  1 root audio 116,  1 28. Okt 21:41 seq
crw-------  1 root audio 116, 33 28. Okt 2004  timer


However, when a user logs in, it changes to this:
Code:

crw-------   1 myuser audio 116,  0 28. Okt 2004  controlC0
crw-------   1 myuser audio 116, 32 28. Okt 21:41 controlC1
crw-------   1 myuser audio 116, 24 28. Okt 21:41 pcmC0D0c
crw-------   1 myuser audio 116, 16 28. Okt 21:41 pcmC0D0p
crw-------   1 myuser audio 116, 56 28. Okt 21:41 pcmC1D0c
crw-------   1 myuser audio 116, 48 28. Okt 21:41 pcmC1D0p
crw-------   1 myuser audio 116, 57 28. Okt 21:41 pcmC1D1c
crw-------   1 myuser audio 116,  1 28. Okt 21:41 seq
crw-------   1 myuser audio 116, 33 28. Okt 2004  timer


Now, /etc/udev/permissions.d sais:
Code:

snd/*:root:audio:0660


and /etc/modules.d/alsa
Code:

options snd device_uid=0
options snd device_gid=18
options snd device_mode=0660


Which leads to the question: what had precedence, if /etc/modules.d/alsa would differ from /etc/udev/permissions.. and why are the real permissions different of both as soon as a user logs on ?
Back to top
View user's profile Send private message
gentoo_dude
l33t
l33t


Joined: 08 May 2004
Posts: 645
Location: Washington, DC

PostPosted: Fri Oct 29, 2004 1:02 am    Post subject: Reply with quote

Do a little more search on this forum and you will find that you have to edit
/etc/security/console.perms

Make sure you have at permision definitions
Code:

<console> 0660 <sound> 0660 audio.root
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum