Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
usermod -G audio dummy
That works without changing permissions on the /dev/snd/* devices.
[root@seaking ~]# ls -l /dev/snd/*
crw-rw----. 1 root audio 116, 12 Jun 27 18:20 /dev/snd/controlC0
crw-rw----. 1 root audio 116, 11 Jun 27 18:20 /dev/snd/hwC0D2
crw-rw----. 1 root audio 116, 10 Jun 27 18:20 /dev/snd/hwC0D3
crw-rw----. 1 root audio 116, 9 Jun 27 18:20 /dev/snd/pcmC0D0c
crw-rw----. 1 root audio 116, 8 Jun 27 18:23 /dev/snd/pcmC0D0p
crw-rw----. 1 root audio 116, 7 Jun 27 18:20 /dev/snd/pcmC0D1c
crw-rw----. 1 root audio 116, 6 Jun 27 18:20 /dev/snd/pcmC0D1p
crw-rw----. 1 root audio 116, 5 Jun 27 18:20 /dev/snd/pcmC0D2c
crw-rw----. 1 root audio 116, 4 Jun 27 18:20 /dev/snd/pcmC0D3p
crw-rw----. 1 root audio 116, 3 Jun 27 18:20 /dev/snd/seq
crw-rw----. 1 root audio 116, 2 Jun 27 18:20 /dev/snd/timer
I went a little bit further with this and created another user dummy2.
Either way that I get this to work, the way above or the way from Comment #19.
If I log in as two consoles.
console1
su - dummy
console2
su - dummy2
console1
speaker-test
#it works, so ctrl-c
console2
speaker-test
#it doesn't work
[dummy2@seaking ~]$ speaker-test
speaker-test 1.0.21
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:985:(snd_pcm_dmix_open) unable to create IPC semaphore
Playback open error: -13,Permission denied
ALSA lib pcm_dmix.c:985:(snd_pcm_dmix_open) unable to create IPC semaphore
Playback open error: -13,Permission denied
but if I go back to root in console2 I can simultaneously have both root and dummy running speaker-test at the same time, I can hear both working.
so if I do an ipcs -a I see some sem/shm left around for dummy after I do a ctrl-c, I suspect this is a bug with speaker-test.
because as soon as I remove the sem and shared memory, I can then run speaker-test as dummy2
let me try to find another way to test the sound, nevermind
#-l option let's speaker-test stop after so many iterations, and doing it this way cleans up the shared memory/semaphores
speaker-test -c 2 -t wav -l 1
once that is cleared up I can then run as the other user dummy2
Note the adding of dummy to the audio group was only to allow users to run speaker-test from a root owned 777 directory
See following KCS article.
https://access.redhat.com/knowledge/solutions/128963
This case is just to ensure that speaker-test on ctrl-c clears out shared memory.
Comment 6RHEL Program Management
2012-10-03 14:26:25 UTC
Development Management has reviewed and declined this request.
You may appeal this decision by reopening this request.
Comment 8RHEL Program Management
2013-10-14 00:34:10 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.
Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.
Installed RHEL-6.7 on a test system and ran the following commands:
# useradd -G audio dummy1
# useradd -G audio dummy2
From a separate terminal:
# su - dummy1
$ speaker-test
...
Performed ctrl-c
From a separate terminal:
# su - dummy2
$ speaker-test
speaker-test 1.0.23
Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
ALSA lib pcm_dmix.c:985:(snd_pcm_dmix_open) unable to create IPC semaphore
Playback open error: -13,Permission denied
Reinstalled RHEL-6.8-20160217.n.0 (x86_64 and i386) and through the same steps as above. speaker-test was able to run for both users without issue. Marking as verified.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2016-0921.html