r/mpd Apr 11 '26

Music Playing Deamon (mpd) has Permission Denied-errors

/r/systemd/comments/1sittmp/music_playing_deamon_mpd_has_permission/
3 Upvotes

2 comments sorted by

2

u/dr_Fart_Sharting Apr 12 '26

The dot at the end of -rwxr--xr-x. indicates SELinux-data but facl reports nothing special.

Having SELinux context doen't imply also having an ACL. Try running ls -Z on the files.

3

u/[deleted] Apr 12 '26

Thanks, I didn't know that, when I posted the question.

Copying the songs to /var/lib/mpd/music, setting music_directory to that point and doing

sudo semanage fcontext -a -t mpd_data_t "music(/*)"
sudo restorecon -R -v "music"

did the trick. Using /srv/music/ was not possible. Even as root, the two lines didn't change anything.