Problem Description
My music files are in a folder (synced with another computer using Syncthing) and I would like to stream that content using MiniDLNA. How do I set up permissions and groups?
Steps to Reproduce
On my external encrypted SSD (mounted using Cockpit) I have created a folder to use with Syncthing, and I gave Syncthing ownership and permission to access the parent folder; sudo mkdir /mnt/ssd/syncthing sudo chmod 755 /mnt/ssd/syncthing sudo chown syncthing:syncthing /mnt/ssd/syncthing
In that Syncthing folder, I created a ‘music’ folder and synced my music files from another computer; /mnt/ssd/syncthing/music
I configured MiniDLNA with this “folder with media files” (using the freedombox web interface) ; /mnt/ssd/syncthing/music
And I added the minidlna user to the syncthing group; sudo usermod -a -G syncthing minidlna
then I restarted the freedombox and waited for magic to happen
Expected Results
MiniDLNA server shows the contents of the /mnt/ssd/syncthing/music folder.
Hi Bart, the setup sounds fine for me. Some ideas / question that come to mind:
You added the minidlna user to the syncthing group. Maybe accessing a mount on an external HD requires some other group (I am guessing), so comparing the groups of both users and the entry in /proc/mounts for the SSD may help.
You wrote that you mounted the SSD using Cockpit, so it happened during runtime. Maybe the mount was not yet available when the MiniDLNA service started? Did you set up the mount point to be auto-mounted during system startup?
Following your steps you first created /mnt/ssd/syncthing, then set the permissions, then created a music folder inside. Maybe this music folder does not have the correct permissions (group syncthing in your case)?
As I said, I am trying to come up with ideas. Not sure if any of this really applies to your actual setup - but still I hope it helps.
A couple of things to do may actually help resolve your problem (these helped me).
Could you have a look at your firewall configurations (easier to do in Cockpit). Make sure that minidlna ports are open? (If you make any changes make sure to restart firewalld)
try adding minidlna user to freedombox-share group (sudo usermod -aG freedombox-share minidlna) and assign ownership to syncthing:freedombox-user
Try changing mod to 775 and give the group read/write/execute permisions. minidlna server cant index files it doesnt have full ownership.
If all above in order, try reindexing with sudo minidlnad -R and restart minidlna server with sudo systemctl restart minidlna