pulseaudio from another user

Hi there and thx for reading and answering this post if you can.

I run a standard opensuse 12.3 x86_64 with the pulseaudio layer, and I want to use an audio app (e.g. skype) from another dedicaced user: typically **su skype; skype

**All works fine - including the graphic - , except the sound.

I already added the skype user in the pulse/pulse-access groups, created the corresponding dir in /run/user, set the correct perms on it.

Tried to run start-pulseaudio-x11, tried paplay file.wav, but I always got connection refused.

What’s wrong ?

Maybe need to open a port in the firewall if this is via a network connection

no, user skype on the same machine.

Is user skype active ie logged in??

not really. I issue su then su skype

So there is no GUI running under user skype? So how is the Skype app supposed run without a GUI? Also su only gives you the skype user’s permissions it does not actually log them in in the normal sense

Totally unclear on why you want to do this, but if you do you need a logged in user running a GUI and the Skype app.

I don’t trust skype. It seems that it does suspicious things, therefore I prefer to run it as a dedicaced user.

Ok but it is not that easy to do. You must arrange things that the skype user is logged into a GUI so as to actually run Skype.

Found out ! :wink:

I just changed the access rights of /run/users/1000 and** /run/users/1000/pulse** to** rwx**. Now I wonder how to allow skype to acknowledge my web cam.

found again ! Set the access rights of /dev/video0 to rwx and added skype to the video group. Then reboot.

/dev is not persistent it is a virtual directory created at boot so I’d not expect changes there to survive a boot. I suppose you could add a script to make the change at each boot ass root

On 2015-08-01 18:56, lader1 wrote:
>
> not really. I issue su then su skype

Try


su -
skype

The dash is important.

An alternative is to jail skype with an apparmor profile. Or in addition to.


Cheers / Saludos,

Carlos E. R.

(from 13.1 x86_64 “Bottle” (Minas Tirith))