Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 763552

Summary: media-sound/mpd-0.21.26: playlist creation is unavailable for non-privilleged user
Product: Gentoo Linux Reporter: Sergey S. Starikoff <Ikonta>
Component: Current packagesAssignee: Mikle Kolyada (RETIRED) <zlogene>
Status: RESOLVED FIXED    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Sergey S. Starikoff 2021-01-04 16:56:11 UTC
I use mpd (for now [I] media-sound/mpd (0.21.26@28.11.2020): The Music Player Daemon (mpd)) player with system-wide storage for playlists.
Some time ago I've updated my music collection and find, that default installation of mpd is non full-featured for unprivilleged user usage.

My user:
# id tux
uid=1001(tux) gid=1001(tux) groups=1001(tux),18(audio),85(usb),998(vboxusers),995(vboxsf),994(scanner),35(games)

Adding write permission for group:
# chmod -R g+w /var/lib/mpd/playlists

# ls -l /var/lib/mpd/ | grep list
drwxrwxr-x 2 mpd  audio  4096 Jan  4 16:33 playlists

Please add setting this permission in ebuild.
Probably with the same for /var/lib/mpd/music directory.

Also it is strange to see logs in /var/lib/mpd/ instead of /var/log/…
Comment 1 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2021-05-27 20:44:06 UTC
Should be fine now
Comment 2 Mikle Kolyada (RETIRED) archtester Gentoo Infrastructure gentoo-dev Security 2021-05-27 20:45:03 UTC
(In reply to Mikle Kolyada from comment #1)
> Should be fine now

i.e. /var/lib/mpd missed proper ownership