Hi,
I have permission issues accessing the media files
I have my medias on an SMB share properly set and working with ACLS on the FreeNAS host
I added a mount point of my SMB share to the jail /media folder as r/w
Code:
minidlna error: open(/media) [Permission denied]
In the host, I tried to create the dlna/dlna user/groups with same 933 uig/gid and membership and added them to the share with r/w access
but no hope
I tried to add user admin in the jail which have wide read/write permissions on the host, and obviously with same uid/gid. I verified
in the jail has proper r/w access to the /media.
I then started minidlna service under the admin user by editing the proper entry in minidlna file
Code:
minidlna_uid=${minidlna_uid-"admin"}
Still, same error. I verified the minidlna service was properly running under the admin user with the command
I also tried to edit the jail fstab adding the acl option:
Code:
/mnt/pool/movies /mnt/pool2/iocage/jails/minidlna/root/media nullfs rw,acl 0 0 # Added by iocage on 2020-12-02 15:24:25
Fixes I found:
- If I run it as root, it properly works. But I really don't want it running as root !
Code:
minidlna_uid=${minidlna_uid-"root"}
- Also, if I use a regular unix folder mount, it properly scans the media folder: not an option for me
- If I change the owner of the share to the user dlna, it would also work. However, if I add a new file through smb, it won't have the dlna user as owner and won't be detected by minidlna unless i change the owner
Anyone managed to make it run with an SMB ACLS mounted share ?