'Mount a private user folder to a public shared folder

I have a Synology NAS with the usual default shared folders like /volume1/video. I have an admin user myuser, which has some videos in /volume1/homes/myuser/Videos Now, I would like to make those videos accessible in the shared folders (so that I can access them from a UPnP device such as my TV). I don't want to copy or move them over.

I changed the permissions of the /volume1/homes/myuser/Videos folder to give read access to everyone. I then edited /etc/rc.local and added in it

sudo mount --bind /volume1/homes/myuser/Videos /volume1/video/myuservideos

This works from the NAS perspective (terminal or DSM). When I go to /volume1/video/myuservideos I can see the videos.

But from my TV, the /volume1/video/myuservideos folder remains empty. Is this a limitation or did I do sth wrong ? Can I achieve what I want ?



Solution 1:[1]

Have you tried to symlink rather than mount --bind? I have a comment in my notes that the former is usually better:

https://unix.stackexchange.com/questions/49623/are-there-any-drawbacks-from-using-mount-bind-as-a-substitute-for-symbolic-lin/49639

“Whatever you're trying to do, it's far more likely that symlinks are the right tool, than bind mounts being the right tool.”

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Dixit