On Mon, Jun 27, 2011 at 02:42:42PM +0200, Jona Joachim wrote:
> Hi,
> I start mpd and aucat with default settings using rc scripts.
> aucat thus runs as user _sndio and mpd runs as _mpd.
> Access to sndio between mpd and programs running as a different user are
> mutually exclusive, so when mpd is playing music nothing else can access
> the sound device.
> According to the aucat(1) manpage:
> "[...] the server can be started by the super-user, [...]  but for
> privacy reasons only one user may have connections to it at a given
> time."
> I was wondering if this is intended behaviour because aucat here does
> not run as root but as _sndio.

This is ok, the _sndio user is to avoid running the server with root
privileges, it's not involved in the "authentication" process. You can
find slightly more details about how it works in the AUTHENTICATION
section of the sndio(7) man page.

The simpler -- and most natural imho -- would be configure mpd to use
unix domain sockets (instead of TCP) and to run it as your user id
instead of _mpd.

If you can't, you can cheat by copying mpd's ~/.aucat_cookie in your
home directory (it must have mode 0600) this way aucat will consider
_mpd and you are the same person. After all, I guess you run _mpd for
you ;)

-- Alexandre

Reply via email to