DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2012-04-05 19:54:50

dmac001
New member
Registered: 2011-07-10
Posts: 3

minidlna "Media directory not accessible!"

Hi, I'm trying to run minidlna (ver 1.0.22) under fun_plug 0.5, DNS-321 and getting "Media directory not accessible!" error. 

minidlna is running as root: 
ps -aef | grep minidlna
18166 root     /ffp/sbin/minidlna -f /ffp/etc/minidlna.conf
18167 root     /ffp/sbin/minidlna -f /ffp/etc/minidlna.conf

My shared media library user/group is win/wing with chmod 755:
ls -l /mnt/HD_a2/mcwin2/My\ Music/iTunes
drwxr-xr-x  760 win      wing        36864 Apr  4 21:03 iTunes Music

minidlna.conf points to music library
media_dir=A,/mnt/HD_a2/mcwin2/My\ Music/iTunes/iTunes\ Music

If I put files under media_dir=A,/mnt/HD_a2/Media/Music, which is owned by root, minidlna can access the folder.
ls -l /mnt/HD_a2/Media
drwxr-xr-x    2 root     root         4096 Apr  3 19:14 Music

I tried adding root to the wing group, but that didn't work (probably something to do with ffp and dns-321 users).  Any other options, other than changing the permissions to root?

Thank you
Don

Offline

 

#2 2012-04-06 12:32:14

jeffjoker
Member
Registered: 2011-11-23
Posts: 52

Re: minidlna "Media directory not accessible!"

First I think you should try without spaces in the name wink

Offline

 

#3 2012-04-06 18:36:33

dmac001
New member
Registered: 2011-07-10
Posts: 3

Re: minidlna "Media directory not accessible!"

That's interesting and lead me to a working solution.  Because the family is tied to iTunes, I didn't want to restructure the music library.  What I ended up doing is creating a symbolic link (without spaces) to the music folder:

ln -s My\ Music Music

I'm not sure I needed to, but I deleted the minidlna files.db and restarted minidlna. 

All is good - thank you!
Don

Last edited by dmac001 (2012-04-06 18:38:11)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB