IceWhaleTech / ZimaOS

679 stars 44 forks source link

Permission issues with mergerfs and containers #22

Open trapexit opened 10 months ago

trapexit commented 10 months ago

Using Plex from app store with user and group set to 1000:1000.

  File: /media/usb/
  Size: 60              Blocks: 0          IO Block: 4096   directory
Device: 19h/25d Inode: 2           Links: 3
Access: (0750/drwxr-x---)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-12-28 21:05:16.469604742 +0000
Modify: 2023-12-28 21:02:53.804045010 +0000
Change: 2023-12-28 21:02:53.804045010 +0000
 Birth: 2023-12-28 21:02:53.801045010 +0000

mergerfs becomes the user making the request and because /media/usb/ is not permissioned to allow 1000:1000 to read the directory it won't show up to plex.

In the very least any directory being created automatically for mounting filesystems should be readable and executable by "other" and permissions be allowed to be set from the file browser. I'd suggest maybe even setting newly formatted filesystem root dirs to 1777.