albertz/shairport — Issue #134: shaiport binary and nobody user privileges
Author: incubus
Created: 2012-01-09 09:50:04+00:00
State: open

Hi!

There is no sound with shairport binary and 'nobody' user privileges. But with shairportl.pl everything is ok. It seems that is the pulseaudio output.

$ sudo su -m nobody -c "/usr/local/bin/shairport -a ff"
LogLevel: 1
AirName: ff
HWID: ,nf;8
HWID_Hex(12): 002C6E663B38
********** RECV OPTIONS **********
********** RECV ANNOUNCE **********
********** RECV SETUP **********
********** RECV RECORD **********
********** RECV SET_PARAMETER **********
No protocol specified
xcb_connection_has_error() returned true
Home directory /root not ours.
waitpid(): No child processes
/root/.esd_auth: Permission denied
********** RECV OPTIONS **********
^C

$ sudo su -m nobody -c "/usr/local/bin/shairport.pl -v"
Listening...
New connection from 192.168.1.33
REQ: OPTIONS
REQ: ANNOUNCE
REQ: SETUP
launched decoder: 10561 on port: 6000
REQ: RECORD
No protocol specified
xcb_connection_has_error() returned true
Home directory /root not ours.
REQ: SET_PARAMETER
/root/.esd_auth: Permission denied
requesting resend on 6 packets (port 54044)
REQ: OPTIONS
REQ: OPTIONS

$ pulseaudio --version
pulseaudio 0.9.22

$ uname -a
FreeBSD incubus.bsd 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan 3 07:46:30 UTC 2012 root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64