I feel like I really ought to be able to figure this out, and it's a bit embarrassing to admit that I can't, but...
I have a Mint 21 server running Plex Media Server, and my media drive is a 12TB internal drive formatted with BTRFS (thinking about switching to XFS, but that's a lot of work). In order for Plex to be able to see new files that I add or replace, they need to be created with 0755 permissions. I know that BTRFS doesn't recognize the umask mount option, and I've tried to create a number of different UDEV rules to do it, but so far none of them have worked. After I add a new show or movie, I have to SSH in and manually chmod it, and that's getting old.
What's the best way to do this so that files are created correctly?
[EDIT] The media volume is mounted remotely via sshfs and that's how I manage files. I've already tried setting a umask on the sftp server in /etc/ssh/sshd_config like so and it had no effect:
Subsystem sftp /usr/lib/openssh/sftp-server -u 022
uid=,gid=andumask=to overcome the limitation (to a point). Btrfs fully supports the model, it does not need such workaround. Instead, one can and should create every single file with independent ownership and mode desired for this specific file. How do you "add or replace" files? This action needs to be tweaked, not the mount.755withoutchmodmay be impossible. It's quite peculiar that your Plex allegedly needs the execute bit in order to be able to see a new regular file. (For directories755makes sense.) Probably we have an XY problem here. How is your Plex configured regarding scanning/refreshing/updating the library? If youchmod +000, does this help likechmod 755does?