How to allow second user (logged in via sudo) to access sound?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux