On Wed, Dec 19, 2007 at 12:05:07AM +0100, Denis Leroy wrote:
Jeff Spaleta wrote:
> On Dec 18, 2007 1:36 PM, Denis Leroy <denis(a)poolshark.org> wrote:
>> The zonbu is also connected to my stereo system, which i can hear from
>> my office. So i will often ssh into the zonbu and play an mp3 from the
>> wireless-mounted NFS directory. Now PA means i have to log in as the
>> same guest user, which is not necessarily ideal because of the nfs mount
>> permissions, but certainly workable. Now of course i can just disable PA
>> in this case and be happy. But you were asking for a specific scenario.
>
> What do you use to play the mp3 from the remote ssh session? Is this
> a case of device permissions not being set like you need via
> ConsoleKit... or is it
> really a problem concerning PA's operation?
good point, it seems to be a permission with /dev/dsp indeed. Colin is
right, if PA's user is not actually playing any sound, then it works if I
chmod /dev/dsp the right way.
You could always add an ACL to the device node--that is what
ConsoleKit does.
getfacl /dev/dsp
getfacl /dev/snd/*
setfacl -m user:<yourusername>:rw- /dev/dsp
setfacl -m user:<yourusername>:rw- /dev/snd/*
BTW, why are you using /dev/dsp which is an OSS device?