FS#6131 - allow non-root users to use mpd rc.d script properly

Attached to Project: Arch Linux
Opened by Roman Kyrylych (Romashka) - Tuesday, 02 January 2007, 00:04 GMT
Last edited by Roman Kyrylych (Romashka) - Saturday, 14 April 2007, 09:35 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Damir Perisa (damir.perisa)
Architecture All
Severity High
Priority Normal
Reported Version 0.7.2 Gimmick
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Currently, mpd package provides mpd.conf.example which is intended for cases where mpd is run by user, not as rc.d script.
Because all path in mpd.conf.example begins with ~/ it may confuse users - they may think ~/ is their home directory, but when running /etc/rc.d/mpd - it is /root! (running /etc/rc.d/mpd as non-root is not possible)
So when user adds mpd to DAEMONS in rc.conf - all music db stored in /root/.mpd, which is very bad.

The right (and secure!) way of running mpd as rc.d script is described here: http://wiki.archlinux.org/index.php/Mpd#Run_as_normal_user
Please implement all steps described there in mpd PKGBUILD & mpd.install
(of course using this setup user can make mpd use db in user's homedir, if he/she wishes so)
This task depends upon

Closed by  Roman Kyrylych (Romashka)
Saturday, 14 April 2007, 09:35 GMT
Reason for closing:  Implemented
Comment by name withheld (Gullible Jones) - Sunday, 28 January 2007, 01:57 GMT
Can confirm. On trying to create the db as a user (with the daemon set to run as said user), mpd fails:

[proteus@thistledown ~]$ mpd --create-db
cannot init supplementary groups of user "proteus" at line 36: Operation not permitted

mpd: symbol lookup error: mpd: undefined symbol: AudioSpecificConfig

(The second error is due to another bug, see here: http://bugs.archlinux.org/task/6293.)
Comment by Roman Kyrylych (Romashka) - Saturday, 07 April 2007, 14:43 GMT
done in mpd-0.12.2-1, please report if you found any issues

Loading...