Hi
I have an NFS share setup with my QNAP NAS to allow access to media files for an LXC. I'm having some issues getting access to the directory with the user that the app (jellyfin) in the container uses.
Some info:
User jellyfin (uid=100103) on the Proxmox host is used to run the app in the container. This is mapped automatically to user 103 in the LXC.
User jellyfin is member of group media (gid=3500) on the Proxmox host:
My NFS share is added as NFS Storage using the Proxmox UI.
Root can navigate into the mount dir as can the jellyfin user when the owner of the directory is set as jellyfin
Jellyfin user cannot access the mount dir when the owner is set to another user (e.g. root as 100000) but the group owner is media
I would expect, as Jellyfin is a member of the media group, that it can access the mount dir regardless of user owner? However it cannot.
Mount directory permissions are 775:
I've created a test directory with the same permissions and ownership, su'd as user jellyfin and the user can access and view all files. This test directory is not an NFS mount which leads me to something incorrect with the NFS config, either on Proxmox or the QNAP? However, as user jellyfin can access the dir when the owner is set to jellyfin makes me think its not the QNAP.
Any pointers would be great!...
I have an NFS share setup with my QNAP NAS to allow access to media files for an LXC. I'm having some issues getting access to the directory with the user that the app (jellyfin) in the container uses.
Some info:
User jellyfin (uid=100103) on the Proxmox host is used to run the app in the container. This is mapped automatically to user 103 in the LXC.
User jellyfin is member of group media (gid=3500) on the Proxmox host:
$ id jellyfin
uid=100103(jellyfin) gid=3501(jellyfin) groups=3501(jellyfin),3500(media)
My NFS share is added as NFS Storage using the Proxmox UI.
Root can navigate into the mount dir as can the jellyfin user when the owner of the directory is set as jellyfin
Jellyfin user cannot access the mount dir when the owner is set to another user (e.g. root as 100000) but the group owner is media
$ cd /mnt/pve/movies
sh: 1: cd: can't cd to /mnt/pve/movies
I would expect, as Jellyfin is a member of the media group, that it can access the mount dir regardless of user owner? However it cannot.
Mount directory permissions are 775:
ls -aln /mnt/pve | grep movies
drwxr-xr-x 11 100000 3500 4096 Nov 13 19:01 movies
I've created a test directory with the same permissions and ownership, su'd as user jellyfin and the user can access and view all files. This test directory is not an NFS mount which leads me to something incorrect with the NFS config, either on Proxmox or the QNAP? However, as user jellyfin can access the dir when the owner is set to jellyfin makes me think its not the QNAP.
Any pointers would be great!...