Issues with fstab network share being visible to Plex Docker reddit / selfhosted ---------------------------------------------------------------------- multidollar · 2023-12-09 22:13 Where is the upstream share? Have you published the share (NAS?) with permissions that allow the user credentials to access it? ---------------------------------------------------------------------- thekrautboy · 2023-12-09 22:25 /r/LinuxQuestions /r/Linux4Noobs ---------------------------------------------------------------------- techypunk · 2023-12-09 22:48 It's cross posted there too ---------------------------------------------------------------------- techypunk · 2023-12-09 22:51 If you clicked on the post, I gave all the info :) Just copy/pastad below. >My fstab line is below. I want this accessible to all users on the Plex host,, and I'm >screwing up permissions somewhere. Only root has access to the share. Which is >why Plex can't see the folder. > > >//$redacted/Media /plex/media cifs username=$redacted,password=$redacted,file_mode=777,dir_mode=777 0 0 > >I'm running Plex (official build) on Debian with docker on this machine, and have >UNRAID running on another that hosts the SMB share. No I can't run Plex on UNRAID. >Xeon processor and no GPU. > >Going nuts figuring out the permission, I thought 777 was enough. > >Any help would be appreciated. Currently migrating to my new set up :) ---------------------------------------------------------------------- multidollar · 2023-12-09 23:19 Didn’t answer my question about upstream unraid permissions. Is there an error in the logs on the client when you try to mount the storage? Logs are your friend here. ---------------------------------------------------------------------- techypunk · 2023-12-09 23:38 I have no issues getting to the SMB share from any system. If I do a regular mount, it mounts. However I need a permanent network mount on Debian. So I edited the /etc/fstab with the line in my last comment. Share mounts on Debian via the fstab file. However only sudo users have access to the share. I can't access the share in terminal unless I sudo my user. ls -l just shows root having access to the share. This is strictly my docker instance not being able to mount the folder as a volume from my docker compose file, because the docker user does not have access to the mounted folder. That's why I didn't answer your question, because it has nothing to do with what I'm asking, or is it relevant. I need to change the fstab addition I made to give access to all users on Debian, not just sudo users ---------------------------------------------------------------------- multidollar · 2023-12-10 00:15 Mate, you’re asking for help on the internet and challenging people with “what is relevant and what isn’t”. I’ll ask questions I think are necessary based on your limited detail. Am I to understand you’re running Plex via docker? If so, how have you defined the volume? Can you supply the whole compose file? ---------------------------------------------------------------------- DrOop104 · 2023-12-10 01:00 Try adding these lines to your fstab mount options, adapted to the UID and GID that your Plex container run as: uid=1000,gid=1000 If you want to read more about it checkout this link: https://man.arch linux.org/man/mount.cifs.8#FILE_AND_DIRECTORY_OWNERSHIP_AND_PERMISSION S ---------------------------------------------------------------------- techypunk · 2023-12-10 01:03 Because it was not relevant to what I'm asking. I work with servers for a living. I'm a systems architect. I can see any volumes I mount that aren't a shared file on the docker image. I've never had to mount a SMB or NFS share to be read by a docker image. I can see the share. It's working. Permissions are wrong. I'm strictly asking what I'm missing from the fstab addition that will give access to all users, not just sudo or root users. Or if there's another way rather than an fstab I appreciate you answering and trying to troubleshoot, but what you're asking was covered. Here's the docker container file with redactions. It's working fine with anything local on the Debian machine if I change the last directory in volumes. https://textbin.net/ha7jaetahp ---------------------------------------------------------------------- techypunk · 2023-12-10 01:26 This is what Iwas looking for. Tysm.