I’ve installed minidlna
from repository. My configuration is like this
port=8200
#network_interface=eth0
user=minidlna
media_dir=/opt/minidlna-share
#merge_media_dirs=no
friendly_name=DLNA
#db_dir=/var/cache/minidlna
#log_dir=/var/log
#log_level=general,artwork,database,inotify,scanner,metadata,http,ssdp,tivo=warn
album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt
.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg
inotify=yes
enable_tivo=no
tivo_discovery=bonjour
strict_dlna=no
#presentation_url=http://www.mylan/index.php
notify_interval=300
serial=12345678
model_number=1
#minissdpdsocket=/var/run/minissdpd.sock
#root_container=.
#force_sort_criteria=+upnp:class,+upnp:originalTrackNumber,+dc:title
#max_connections=50
#wide_links=no
#enable_subtitles=yes
This works fine. But when I insert another media directory for example media_dir=home/user/Public
, and the sudo systemctl restart minidlna.service
it says as follows:
[2021/01/20 21:57:40] minidlna.c:670: error: Media directory "/home/user/Public" not accessible [Permission denied]
I’ve tried changing my user:group
for ~/Public
folder to root:root
but output was the same.
Another thing to be added that the configuration has an option wide_links=no
. If I change this to wide_links=yes
I should be able to view the linked files also (as mentioned inside config file). But unfortunately that didn’t work either.
Is there any solution?