Re: specifying user or socketfile for libxmms
Mark Rafn <[email protected]>
| Newsgroups | gmane.comp.multimedia.xmms.devel |
|---|---|
| Message-ID | <[email protected]> |
> Mark Rafn <[email protected]> wrote: > > I can specify the session number to connect to, but as far as I can see, > > there's no way to specify the username to connect to. It appears to use > > glib's g_get_user_name, with no option to override. On Fri, 14 Nov 2003, Florent Rougon wrote: > IMHO, your options are: > a) use a setuid wrapper around some "XMMS shell" such as PyXMMS-remote > (http://people.via.ecp.fr/~flo/index.en.xhtml#PyXMMS-remote), if > apache allows that (note that I didn't say setuid root...) I did some brief experiments with this, none of which actually seemed to affect the username that libxmms was getting. Can anyone describe how g_get_user_name figures out the name to use? It doesn't seem to care about uid, nor any environment var I could find. > b) have apache run as the user whose XMMS session you want to control heh, or run xmms as the apache user, I guess... > c) use the XMMS control protocol through the appropriate socket and > with adequate privileges (probably a lot more work than a and b, > and if you can sort out the problem of privileges, you can probably > already do a and b, so...) I'm hoping to avoid this. I'm pretty sure the problem is not priveleges (the socket is world-writable), simply getting the right filename. I'd likely hack libxmms rather than rewriting all of the protocol code. -- Mark Rafn [email protected] <http://www.dagon.net/>