[pulseaudio-discuss] Accessing audio as root

Lennart Poettering lennart at poettering.net
Thu Dec 17 01:52:16 PST 2009


On Thu, 26.11.09 14:31, Colin Guthrie (gmane at colin.guthr.ie) wrote:

> 
> 'Twas brillig, and Markus Rechberger at 26/11/09 08:51 did gyre and gimble:
> >Hi,
> >
> >I've been working quite a while with pulseaudio, one thing that breaks
> >alsa compatibility is that since PA is user based root is not allowed
> >to access audio.
> >This always worked with native Alsa even if root is not in the audio group.
> >
> >I'm not sure if this behaviour is intended to be like that or if it
> >can be considered as an implementation bug...
> 
> If becoming root under an X11 session, try "su" rather than "su -"
> when becoming root (or sudo -s vs. sudo -i). If you can access the X
> root window then the x11 properties will be readable by the root
> user and the PULSE_SERVER and PULSE_COOKIE variables will be all the
> root user (well libpulse really) will need to be able to access the
> user's PA process.

I don't see why anyone would want to have audio when changing to root
for admin purposes. Playing music certainly does not fall under "admin
purposes".

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net
http://0pointer.net/lennart/           GnuPG 0x1A015CC4



More information about the pulseaudio-discuss mailing list