Re: specifying user or socketfile for libxmms
Florent Rougon <[email protected]>
| Newsgroups | gmane.comp.multimedia.xmms.devel |
|---|---|
| Message-ID | <[email protected]> |
Mark Rafn <[email protected]> wrote: > I'm trying to find a way for an apache server running as nobody to control > xmms running for a specific user. I'm using perl and Xmms::Remote, which > seems to be a pretty thin wrapper over libxmms. > > 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. 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...) b) have apache run as the user whose XMMS session you want to control 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...) HTH, -- Florent