Hi new here so sorry if this isn’t the right way to do this. I didn’t see a way to just put this in a reply to Linux Tips - #2 by ChuckPa, looked like it was locked, but I thought I would just mention that this was enormously helpful in getting Ubuntu to see my media library. However, I would suggest an update.
While it fixed Plex it broke the ability of other applications (in my case sabnzbd) from seeing the same drive. It looks like when it was mounting the drive to /disks the folder was changing it’s ownership and permissions from my user to root (I think this was the issue) changing the fstab entry from ‘default’ to ‘user’ fixed the issue and allowed the folder and subfolders to retain the permissions I had set on them prior to mounting. Figured other people might see that as well so thought I’d just suggest it.
Given Linux lets us do things 1000 different ways ( )
What if setuid/setgid were applied to the target directories
(Inheritance) ?
Setting permissions (the entire tree – the app is being piggish) could be turned off. Sonarr/Radarr don’t do that for me. They only set perms on newly created files and directories.
Can your suggestion and this be combined somehow then clearly documented to support multiple usage cases ?
If it will do what I’m thinking, you could have different owners/groups for different directory trees on one mount, still support root over the mount, and have the Linux destination set the UID/GID/Perms exactly how you want them even if all are different and then let the kernel maintain that for you.
This almost sounds like another “Linux Tip” in the making –