how to enable audio as root ?

Doug H. fedoraproject.org at wombatz.com
Sun Apr 5 17:25:43 UTC 2015


On Sun, 2015-04-05 at 13:06 -0400, sean darcy wrote:
> I want to have sound when logged in as root. I don't care if it's a good 
> idea or not.
> 
> And I don't care if it's pulseaudio or alsa, or whatever.
> 
> I've tried pulseaudio -D, but the volume control never can connect to 
> the daemon. It just spams syslog with:
> pulseaudio[6288]: Denied access to client with invalid authentication data.
> 
> I've added system-instance = yes to /etc/pulse/daemon.conf.
> 
> I've read 
> http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/ 
> .
> 
> I've set up the users and groups as described.
> 
> .esd_auth exists in /var/run/puls
> 
> Does anyone have audio working as root?


I am assuming that you mean that you are logging into your window
manager as root.  But just to cover the other option...

I logged am logged into Xfce4 as my regular user and working in an
xfce4-termnal window.  I can:

> sudo tcsh
#mpg123 laser.mp3
#aplay dot_matrix_printer.wav

Both work fine.  So, for me "using sound as root" is working.

I don't feel that Xfce or other windowing systems have ever been
designed to work with a root login.  Yes, I know that people do it, but
to me it is sort of like asking "why can't I login as ~nobody if I want
to?".  It is just *not* setup for it.



-- 
Doug H.


More information about the users mailing list