[pulseaudio-discuss] How to allow second user (logged in via sudo) to access sound?

Tanu Kaskinen tanu.kaskinen at linux.intel.com
Sun Jul 14 05:35:32 PDT 2013


On Sun, 2013-07-14 at 14:03 +0200, Manuel Reimer wrote:
> Hello,
> 
> I use pulseaudio and with my primary user (which logs in directly to 
> KDE) anything works well.
> 
> I use more than one user on my system. Sometimes, I just switch to one 
> of the other users via "sudo".
> 
> Now I need some way to allow those users, which don't directly log in to 
> the session, to access my soundcard.
> 
> What do I have to do on the "session side" and what do I have to start 
> in my "sudo session"? Is it possible to get the two "sessions" connected 
> somehow, so audio works for the "sudo-users"?

I don't know if we have some "best practice" about this, but at least
one way to do this is to load module-native-protocol-tcp with parameters
listen=localhost and auth-anonymous=yes on the "session side" and set
environment variable PULSE_SERVER=localhost in the "sudo session".

-- 
Tanu



More information about the pulseaudio-discuss mailing list