6.7 and sound

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

6.7 and sound

Austin Hook-2

Can't seem to parse the instructions in
http://www.openbsd.org/faq/upgrade67.html

for how to re-enable an ordinary non root user of Firefox or mplayer to
output audio.

mplayer works fine as root, but what command lines are necessary to allow
a non root user get sound output?

let's username is: joeuser

Thanks in advance.  

Austin

Reply | Threaded
Open this post in threaded view
|

Re: 6.7 and sound

Alexandre Ratchov-2
On Thu, Sep 03, 2020 at 08:39:45PM -0600, Austin Hook wrote:

>
> Can't seem to parse the instructions in
> http://www.openbsd.org/faq/upgrade67.html
>
> for how to re-enable an ordinary non root user of Firefox or mplayer to
> output audio.
>
> mplayer works fine as root, but what command lines are necessary to allow
> a non root user get sound output?
>
> let's username is: joeuser
>

Hi,

Sound is supposed to work by default for regular users. Check if
sndiod(8) is still running and if /dev/audio* have the correct
permissions (normally MAKEDEV, part of the upgrade is supposed to fix
update the permissions).

FWIW, starting 6.7, for improved security, regular users have no
direct access to /dev/audioX anymore. Sound must go through sndiod(8),
which is running by default. For sndiod(8) to access the hardware, the
below device nodes ownership and permissions are needed:

$ ls -al /dev/audio* /dev/rmidi*                                          
crw-rw----  1 root  _sndiop   42,   0 Aug 29 08:00 /dev/audio0
crw-rw----  1 root  _sndiop   42,   1 Jul 27 10:16 /dev/audio1
crw-rw----  1 root  _sndiop   42,   2 Jul 27 10:16 /dev/audio2
crw-rw----  1 root  _sndiop   42,   3 Jul 27 10:16 /dev/audio3
crw-rw----  1 root  _sndiop   42, 192 Jul 27 10:16 /dev/audioctl0
crw-rw----  1 root  _sndiop   42, 193 Jul 27 10:16 /dev/audioctl1
crw-rw----  1 root  _sndiop   42, 194 Jul 27 10:16 /dev/audioctl2
crw-rw----  1 root  _sndiop   42, 195 Jul 27 10:16 /dev/audioctl3
crw-rw----  1 root  _sndiop   52,   0 Jul 27 10:16 /dev/rmidi0
crw-rw----  1 root  _sndiop   52,   1 Jul 27 10:16 /dev/rmidi1
crw-rw----  1 root  _sndiop   52,   2 Jul 27 10:16 /dev/rmidi2
crw-rw----  1 root  _sndiop   52,   3 Jul 27 10:16 /dev/rmidi3
crw-rw----  1 root  _sndiop   52,   4 Jul 27 10:16 /dev/rmidi4
crw-rw----  1 root  _sndiop   52,   5 Jul 27 10:16 /dev/rmidi5
crw-rw----  1 root  _sndiop   52,   6 Jul 27 10:16 /dev/rmidi6
crw-rw----  1 root  _sndiop   52,   7 Jul 27 10:16 /dev/rmidi7