Bug 167248
Summary: | Bad permissions in /dev/snd/ block alsa sound | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | David A. De Graaf <dad> |
Component: | udev | Assignee: | Harald Hoyer <harald> |
Status: | CLOSED WORKSFORME | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2005-09-01 09:59:08 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
David A. De Graaf
2005-08-31 21:25:51 UTC
$ fgrep -2 snd /etc/security/console.perms.d/50-default.perms /dev/mixer* /dev/sequencer \ /dev/sound/* /dev/beep \ /dev/snd/* <cdrom>=/dev/cdrom* /dev/cdroms/* /dev/cdwriter* /mnt/cdrom* <pilot>=/dev/pilot $ rpm -qf /etc/security/console.perms.d/50-default.perms pam-0.79-8 /dev/snd/* gets the ownership of the first logged in console user, maybe this is your problem. $ ll /dev/snd/* crw------- 1 harald root 116, 0 29. Aug 08:03 /dev/snd/controlC0 crw------- 1 harald root 116, 32 29. Aug 08:03 /dev/snd/controlC1 crw------- 1 harald root 116, 64 29. Aug 08:03 /dev/snd/controlC2 crw------- 1 harald root 116, 4 29. Aug 08:03 /dev/snd/hwC0D0 crw------- 1 harald root 116, 8 29. Aug 08:03 /dev/snd/midiC0D0 .... You're absolutely right about the first logged in user getting ownership. This, if I may say so, is an incredibly defective design. Very Windows-esque. Whatever happened to the notion that Linux is a multiuser system? How is the second, or third, user supposed to hear sounds? There are (a few) reasons that more than one sound should play concurrently. I can do it myself in two different windows. But when another user does this $ aplay /usr/share/sounds/*.wav ALSA lib pcm_dmix.c:782:(snd_pcm_dmix_open) unable to create IPC semaphore aplay: main:533: audio open error: Permission denied even with /dev/snd/* permissions set to 0666. So apparently there are more impediments to progress than those permissions; the semaphore system, too. I think it's a bug that multiple users cannot use the sound system concurrently. How can it be fixed? The one console user owns all console devices. You do not want to let remote users play sounds, which only the console user can hear. For more information and to express your concerns, please subscribe to the fedora-list and discuss it there. http://www.redhat.com/mailman/listinfo/fedora-list |