execute pacmd from root, pa started as non root user.

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

 



Hi ,


I am trying to execute pacmd commands through from remote pc via
ssh. Unfortunately i can ssh with root user only. As pulseaudio is not
started in root user i cant issue pacmd/pactl command. I tried to start
--system. but same. Is there any way to execute pacmd comamnds from root shell
but pa started in non root user.


-----
[root at dhcp-10-132-69-38 ~]# ps aux | grep pulse
gdm       2935  0.0  0.1 579004  7400 ?        S<l  15:47   0:00
/usr/bin/pulseaudio --start --log-target=syslog
svt       2938  0.2  0.3 840796 12224 ?        S<l  15:47   0:02
/usr/bin/pulseaudio --start --log-target=syslog
pulse     3432  0.1  0.2 323088  8292 pts/1    S<l  16:07   0:00
/usr/bin/pulseaudio --log-target=syslog --system
root      3436  0.0  0.0 119372   952 pts/1    S+   16:07   0:00 grep
--color=auto pulse

[root at dhcp-xx ~]# pacmd list
No PulseAudio daemon running, or not running as session daemon.

[root at dhcp-xx ~]# su svt -c 'pacmd list'
XDG_RUNTIME_DIR (/run/user/0) is not owned by us (uid 1000), but by
uid 0! (This could e g happen if you try to connect to a non-root
PulseAudio as a root user, over the native protocol. Don't do that.)
No PulseAudio daemon running, or not running as session daemon.

With Non root user everything works fine.

Thanks


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

  Powered by Linux