Change user used by Jellyfin #286
Replies: 4 comments 5 replies
-
Thanks for moving to 'Discussions' @tteck and apologies, I wasnt aware of this Github feature |
Beta Was this translation helpful? Give feedback.
-
You need to change the user in
Better but need to try, is to create
After that, you need to change owner of Jellyfin files and folders (or you can add you user to root@jellyfin:~# chown -R jellyfin:jellyfin /etc/default/jellyfin
root@jellyfin:~# chown -R jellyfin:jellyfin /usr/bin/jellyfin
root@jellyfin:~# chown -R jellyfin:jellyfin /var/lib/jellyfin/
root@jellyfin:~# chown -R jellyfin:jellyfin /etc/jellyfin/
root@jellyfin:~# chown -R jellyfin:jellyfin /var/log/jellyfin/
root@jellyfin:~# chown -R jellyfin:jellyfin /var/cache/jellyfin/
root@jellyfin:~# chown -R jellyfin:jellyfin /usr/share/jellyfin
root@jellyfin:~# chown -R jellyfin:jellyfin /usr/share/jellyfin-ffmpeg
root@jellyfin:~# chown -R jellyfin:jellyfin /usr/lib/jellyfin/
root@jellyfin:~# chown -R jellyfin:jellyfin /usr/lib/jellyfin-ffmpeg/ After that, you need to reload root@jellyfin:~# systemctl daemon-reload and restart service : root@jellyfin:~# systemctl restart jellyfin Yiu can no check that your user is running Jellyfin : root@jellyfin:~# ps -aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
...
jellyfin 149 0.0 9.4 3676716 198456 ? Ssl 10:51 0:03 /usr/bin/jellyfin --webdir=/usr/share/jellyfin/web --restartpath=/usr/lib/jellyfin/restart.sh --
... |
Beta Was this translation helpful? Give feedback.
-
I'm struggling here as well.... I've created a folder on the host and mounted it in each container (for example, mp0: /mnt/downloads,mp=/mnt/downloads). My Radarr, Sonarr, Sabnzbd containers can all see the mounted folder but they all have UID/GID of Nobody/Nogroup and I can not figure out how to fix it. I've tried following the following, but no luck.
Again, my knowledge is limited but I think ideally each container would have it's own user "radarr", "sonarr", "sabnzbd", "plex" whom are all part of the group "media" and then apply these permissions to the mounted folders on the host. If anyone has figured this out, I would greatly appreciate the help. Cheers. |
Beta Was this translation helpful? Give feedback.
-
Hi, I had the same issues as listed above with my unprivileged LXC containers. I found the following post and followed the advice which resolved my permissions issues. Hopefully this helps others as well. https://forum.proxmox.com/threads/lxc-user-mapping-permission-problem.108244/ |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
First a big thanks to tteck! These scripts have helped me learn so much about proxmox
I am setting up Jellyfin (along with Solarr, Radarr etc) as separate LXCs. To allow access to storage on the host I am doing a bind mount (/mnt/media). My research suggests creating the same user UID/GID (media/media 1001/1001) on the host and LXCs simplifies permissions. The approach is described here under 'Method 2' if anyone is interested
So my question, how would I go about updating the Jellyfin LXC to run Jellyfin using the user I have created? I believe, by default, the user running the app in the LXC is root
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions