Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#16503 - [mpd] upgrading alters directory permissions
Attached to Project:
Arch Linux
Opened by Henner M. Kruse (skaven) - Wednesday, 07 October 2009, 12:34 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 07 October 2009, 14:10 GMT
Opened by Henner M. Kruse (skaven) - Wednesday, 07 October 2009, 12:34 GMT
Last edited by Jan de Groot (JGC) - Wednesday, 07 October 2009, 14:10 GMT
|
DetailsDescription: When updating the mpd package the permissions for all configuration directories get altered, configuration remains untouched. This is annoying when there is another user than "mpd" set in the mpd.conf.
After the update mpd isn't able to write the pid-file in /var/run/mpd, the log-file in /var/log/mpd or read configurations from /var/lib/mpd. Additional info: * package version(s) extra/mpd 0.15.4-1 * config and/or log files etc. BEFORE UPDATE: $ egrep -v '^#' /etc/mpd.conf | cat -b 1 music_directory "/var/lib/mpd/music" 2 playlist_directory "/var/lib/mpd/playlists" 3 db_file "/var/lib/mpd/mpd.db" 4 log_file "/var/log/mpd/mpd.log" 5 pid_file "/var/run/mpd/mpd.pid" 6 state_file "/var/lib/mpd/mpdstate" 7 user "hmk" 8 input { 9 plugin "curl" 10 } $ ls -l /var/lib/mpd/ /var/log/mpd/ /var/run/mpd/ /var/lib/mpd/: total 7316 -rwxrwxr-x 1 hmk users 7450147 2009-10-03 13:40 mpd.db -rw-r--r-- 1 hmk users 859 2009-10-07 14:21 mpdstate drwxrwxr-x 504 hmk users 16384 2009-09-19 13:30 music drwxrwxr-x 2 hmk users 26 2009-09-27 15:43 playlists /var/log/mpd/: total 14660 -rw-r--r-- 1 hmk users 0 2009-09-27 15:32 mpd.db-creation -rw-r--r-- 1 hmk users 15005393 2009-10-03 13:40 mpd.log /var/run/mpd/: total 4 -rw-r--r-- 1 hmk users 5 2009-10-07 14:01 mpd.pid AFTER UPDATE (mpd.conf still the same): $ /etc/rc.d/mpd start :: Starting Music Player Daemon [BUSY] /etc/rc.d/mpd: line 6: 6862 Aborted /usr/bin/mpd /etc/mpd.conf &>/dev/null [FAIL] $ ls -l /var/lib/mpd/ /var/log/mpd/ /var/run/mpd/ /var/lib/mpd/: total 7316 -rwxrwxr-x 1 mpd mpd 7450147 2009-10-03 13:40 mpd.db -rw-r--r-- 1 mpd mpd 859 2009-10-07 14:21 mpdstate drwxrwxr-x 504 mpd mpd 16384 2009-09-19 13:30 music drwxrwxr-x 2 mpd mpd 26 2009-09-27 15:43 playlists /var/log/mpd/: total 14660 -rw-r--r-- 1 mpd mpd 0 2009-09-27 15:32 mpd.db-creation -rw-r--r-- 1 mpd mpd 15005393 2009-10-03 13:40 mpd.log /var/run/mpd/: total 4 -rw-r--r-- 1 mpd mpd 5 2009-10-07 14:01 mpd.pid Steps to reproduce: Change the user-line in /etc/mpd.conf to something other than "mpd", i.e. your local user, change the configuration directory permissions accordingly and then update the mpd package. Workaround: Change $USER and $GROUP to your needs: $ for i in lib log run; do 'chown -R $USER:$GROUP /var/$i/mpd'; done |
This task depends upon
$ cat -b /etc/mpd.conf | egrep -v '^.*#'
11 music_directory "/var/lib/mpd/music"
18 playlist_directory "/var/lib/mpd/playlists"
26 db_file "/var/lib/mpd/mpd.db"
35 log_file "/var/log/mpd/mpd.log"
41 pid_file "/var/run/mpd/mpd.pid"
48 state_file "/var/lib/mpd/mpdstate"
58 user "hmk"
142 input {
143 plugin "curl"
147 }