minidlna.c:613: error: Media directory ... [Permission denied]
Brought to you by:
jmaggard
I've moved my system to a new pc, and i got the minidlna.c:613: error: Media directory ... [Permission denied] errors when i start minidlna daemon, which set to use minidlna user, and group. minidlna user is added to my own group, which is the owner of the media directory, and have 770 rights.
Everything is owned by that group, recursively. Then i done a minidlnad -R it indexed the "permission denied" files, and when i started the daemon, it worked... until the next reboot, after that again permission denied.
Which version are you using? Any patches? The minidlna.c:613 error is not maching up with v1.2.1. Post the full error messages.
A couple things to consider: Double check all your permissions. Check your init or systemd settings, configs, and scripts.
Hi, I spent the last couple of hours trying to figure out the problem. Add this file called /etc/systemd/system/minidlna.service .
I removed "ProtectHome=on" from the default systemd configuration. This should not be on by default!!!!!!
I would call this a bug. If it works when launched manually, it should work when launched with systemd.
Report systemd configuration issues with your distro.
I would call systemd a bug too. Remove it and use another init system.
https://suckless.org/sucks/systemd
http://without-systemd.org
I like it so far.
I'm on Arch Linux (new install as of last week).
Your problem is related to a systemd security feature.
You should learn to use your distro's wiki.
https://wiki.archlinux.org/index.php/ReadyMedia#Troubleshooting
ProtectHome feature protects the home/user directory. According to ArchWiki, ProtectHome=on is default for *all* services.
Your distro's forum is your best option to try to change the default.
Edit: Arch Linux provides the systemd configuration for minidlna.service. Voice your concerns to Arch Linux package maintainer.
https://www.archlinux.org/packages/community/x86_64/minidlna/
Last edit: Shrimpkin 2019-02-27