Change permission on folders for Jellyfin in Ubuntu - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access) +---- Thread: Change permission on folders for Jellyfin in Ubuntu (/t-change-permission-on-folders-for-jellyfin-in-ubuntu) |
Change permission on folders for Jellyfin in Ubuntu - Worldrazor - 2024-02-16 I've been trying to get Jellyfin to access my library, but it won't. I think I have narrowed it down to being a permission issue. I've tried to use the command chown -R :lxc_shares /mnt/nas but without luck (it dosen't change anything). I have followed this guide (https://forum.proxmox.com/threads/tutorial-unprivileged-lxcs-mount-cifs-shares.101795/) to set up shares in my LXC. So basicly I think I need to change the ownership of the directory to the group where the jellyfin user is, but I don't know how. The permissions for the folders look like this: root@jellyfin:~# ls -l /mnt/nas total 0 drwxrwx--- 2 100000 110000 0 Feb 12 13:48 Downloads drwxrwx--- 2 100000 110000 0 Feb 11 20:03 Movies drwxrwx--- 2 100000 110000 0 Jan 26 04:18 TV-Series RE: Change permission on folders for Jellyfin in Ubuntu - TheDreadPirate - 2024-02-16 With network shares you need to provide a UID and GID in the mount parameters that correspond to the owner of the files on the NAS side. RE: Change permission on folders for Jellyfin in Ubuntu - Worldrazor - 2024-02-16 I'm running it in a Proxmox LXC btw. It's mounted like this: mp0: /mnt/lxc_shares/nas_rwx/,mp=/mnt/nas which should have rwx permissions It's mounted on the host like this //111.111.11.111/Jellyfin /mnt/lxc_shares/nas_rwx cifs _netdev,x-systemd.automount,noatime,uid=100000,gid=110000,dir_mode=0770,file_mode=0770,user=pveuser,pass=PASSWORD 0 0 I have created a Group with the id 10000 where the jellyfin user has been added RE: Change permission on folders for Jellyfin in Ubuntu - TheDreadPirate - 2024-02-16 You can see your library on the command line, but jellyfin won't read it, correct? (2024-02-16, 10:06 PM)Worldrazor Wrote: root@jellyfin:~# ls -l /mnt/nas If that is the case, I think in the ubuntu you need to chown the library path so that jellyfin owns it or is the group owner and not 10000:11000. Since the mount parameters will translate a lot of that. RE: Change permission on folders for Jellyfin in Ubuntu - Worldrazor - 2024-02-16 I have already tried that with this command: chown -R :lxc_shares /mnt/nas Also tried changing the group name to ID instead, but it dosen't change the permissions for the folder RE: Change permission on folders for Jellyfin in Ubuntu - TheDreadPirate - 2024-02-16 What are the permissions on the host system? RE: Change permission on folders for Jellyfin in Ubuntu - Worldrazor - 2024-02-16 I fixed it! I created a new LXC and made it unprivileged. That apparently made the change |