diff options
author | Michal Nazarewicz <mina86@mina86.com> | 2009-07-19 08:17:55 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-07-19 08:17:55 +0200 |
commit | d718a8b59d1f48abcff7f5626a237c1998fc83d5 (patch) | |
tree | 746fd0eb526ece35f71d8c5ca0f480ba107ec11d /doc/mpdconf.example | |
parent | 4100035b19a5d0dedcf8f71a272fa67f6a24361a (diff) | |
download | mpd-d718a8b59d1f48abcff7f5626a237c1998fc83d5.tar.gz mpd-d718a8b59d1f48abcff7f5626a237c1998fc83d5.tar.xz mpd-d718a8b59d1f48abcff7f5626a237c1998fc83d5.zip |
daemon: added "group" configuration option
The "group" configuration option is similar to "user" as it
sets user set what group MPD shall run as. With "user"
option, MPD changed GID to the GID of the user, however,
more control could be desired.
Moreover, the patch changes the way of checking whether no
setuid(2)/setgid(2) is required -- previously user names
were compered, now UID and GIDs are compered (ie. the one we
already have (getuid(2)/getgid(2)) with the one we want to
change to).
Diffstat (limited to 'doc/mpdconf.example')
-rw-r--r-- | doc/mpdconf.example | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/mpdconf.example b/doc/mpdconf.example index 7574ffc87..1dce635b2 100644 --- a/doc/mpdconf.example +++ b/doc/mpdconf.example @@ -61,6 +61,13 @@ # #user "nobody" # +# This setting specifies the group that MPD will run as. If not specified +# primary group of user specified with "user" setting will be used (if set). +# This is useful if MPD needs to be a member of group such as "audio" to +# have permission to use sound card. +# +#group "nogroup" +# # This setting sets the address for the daemon to listen on. Careful attention # should be paid if this is assigned to anything other then the default, any. # This setting can deny access to control of the daemon. |