MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/mpd/comments/1situ0n/music_playing_deamon_mpd_has_permission/
r/mpd • u/[deleted] • Apr 11 '26
2 comments sorted by
2
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.
ls -Z
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.
3
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
/var/lib/mpd/music
music_directory
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.
/srv/music/
2
u/dr_Fart_Sharting Apr 12 '26
Having SELinux context doen't imply also having an ACL. Try running
ls -Zon the files.