[pulseaudio-discuss] Failed to connect pulseaudio server using user account A, when pulseaudio server is launched by different user account B
Chen, Hao H
hao.h.chen at intel.com
Mon Nov 24 21:43:16 PST 2008
Hi,
The problem is: Failed to connect PA server using user account A, when pulseaudio server is launched by different user account B. Is it normal?
[Description:]
===========
1> If pulseaudio server is launched by normal user, su to another user, ex. "root".
Log
-----
[root at localhost data] pacmd
E: pacmd.c: No PulseAudio daemon running
[root at localhost data]# paplay s16_44khz_stereo.wav
Connection failure: Connection refused
[root at localhost data]# ps -eaf | grep pulseaudio
haohaot 7746 7724 0 11:26 pts/15 00:00:00 pulseaudio -D
root 7861 7800 0 13:18 pts/16 00:00:00 grep pulseaudio
2> if pulseaudio server is launched by root, and another normal user to access PA server, failed too.
Log
----
[haohaot at localhost data]$ pacmd
E: pacmd.c: no PulseAudio daemon running
[haohaot at localhost data]$ paplay s16_44khz_stereo.wav
Connection failure: Connection refused
[haohaot at localhost data]$ ps -eaf | grep pulseaudio
root 7885 7867 0 13:21 pts/15 00:00:00 pulseaudio -v
haohaot 7919 7892 0 13:21 pts/16 00:00:00 grep pulseaudio
Tested on 0.9.12 and 0.9.10. (I remember ever tired on 0.9.13, the same result)
[Comments]
===========
It seems only the user who launched the PA server, could connect. For other user, even root, it failed. Is it normal??
I found one similar problem before:
Ticket #222 "pacmd doesn't work with pulseaudio running as a system-wide daemon"
Hao
More information about the pulseaudio-discuss
mailing list