Ubuntu permissions - Printable Version +- Jellyfin Forum (https://forum.jellyfin.org) +-- Forum: Support (https://forum.jellyfin.org/f-support) +--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting) +--- Thread: Ubuntu permissions (/t-ubuntu-permissions) |
RE: Ubuntu permissions - intael - 2023-12-02 I'm storing my media in an NFTS partition while jellyfin server runs on a separate one. I use debian so my situation should be very similar to yours. In order to make this work I had to properly configure the mount of the NTFS partition. Try the following: - Given that Jellyfin runs under the jellyfin user and group, do add your user to the jellyfin group so that both the jellyfin user and your user share the permissions of the jellyfin group (this is just for convenience): Code: usermod -a -G jellyfin yourusername - Run the following to get the id of the jellyfin group: Code: getent group jellyfin - Run the following to get the id of your user: Code: id -u <username> - Edit the /etc/fstab file where you can configure your NTFS media partition. The entry of mine looks like this. Replace YOUR_UID and YOUR_GID by your groupid and userid from the previous steps. Permission-wise the key here is on that umask option. Apparently permissions on NTFS work by stating what's NOT allowed. So the 0s are actually 7 (allow all). In this case we're saying: Allow everything to the user and group, but nothing to others. Code: yadayada_partition_name ntfs rw,uid=YOUR_UID,gid=YOUR_GID,umask=007 0 2 - Save and run the following to apply the mounting: Code: mount -a --verbose If everything went alright you should see the name of your partition and the result of mounting it. RE: Ubuntu permissions - FuzzyDunlop - 2023-12-03 This wouldn't still apply if I already reformatted to ext4, would it? RE: Ubuntu permissions - TheDreadPirate - 2023-12-03 With EXT4 it would just use standard linux permissions on the directories in it. What intael post is describing is for NTFS and would not apply to EXT4. RE: Ubuntu permissions - FuzzyDunlop - 2023-12-09 Any other ideas? I can't think of anything else to try. Any help would be greatly appreciated. RE: Ubuntu permissions - TheDreadPirate - 2023-12-09 What are the mount parameters for the drive with your library? Mine for reference. Code: /dev/sdd1 /media/storage ext4 defaults 0 1 RE: Ubuntu permissions - FuzzyDunlop - 2023-12-09 Sorry...how do I find the mount parameters? I've tried a few commands, but none seem to be right. Thanks. RE: Ubuntu permissions - TheDreadPirate - 2023-12-09 cat /proc/mounts RE: Ubuntu permissions - FuzzyDunlop - 2023-12-09 This is what I got... sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0 proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0 udev /dev devtmpfs rw,nosuid,relatime,size=3904040k,nr_inodes=976010,mode=755,inode64 0 0 devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0 tmpfs /run tmpfs rw,nosuid,nodev,noexec,relatime,size=788444k,mode=755,inode64 0 0 /dev/nvme0n1p2 / ext4 rw,relatime,errors=remount-ro 0 0 securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0 tmpfs /dev/shm tmpfs rw,nosuid,nodev,inode64 0 0 tmpfs /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k,inode64 0 0 cgroup2 /sys/fs/cgroup cgroup2 rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot 0 0 pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0 efivarfs /sys/firmware/efi/efivars efivarfs rw,nosuid,nodev,noexec,relatime 0 0 bpf /sys/fs/bpf bpf rw,nosuid,nodev,noexec,relatime,mode=700 0 0 systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=29,pgrp=1,timeout=0,minproto=5,maxproto=5,direct,pipe_ino=18561 0 0 hugetlbfs /dev/hugepages hugetlbfs rw,relatime,pagesize=2M 0 0 mqueue /dev/mqueue mqueue rw,nosuid,nodev,noexec,relatime 0 0 debugfs /sys/kernel/debug debugfs rw,nosuid,nodev,noexec,relatime 0 0 tracefs /sys/kernel/tracing tracefs rw,nosuid,nodev,noexec,relatime 0 0 fusectl /sys/fs/fuse/connections fusectl rw,nosuid,nodev,noexec,relatime 0 0 configfs /sys/kernel/config configfs rw,nosuid,nodev,noexec,relatime 0 0 ramfs /run/credentials/systemd-sysusers.service ramfs ro,nosuid,nodev,noexec,relatime,mode=700 0 0 /dev/loop0 /snap/bare/5 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop1 /snap/core20/1974 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop2 /snap/core20/2015 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop3 /snap/core22/858 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop4 /snap/core22/864 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop5 /snap/firefox/2987 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop6 /snap/firefox/3358 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop7 /snap/gnome-3-38-2004/143 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop8 /snap/gnome-42-2204/120 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop9 /snap/gnome-42-2204/141 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop10 /snap/gtk-common-themes/1535 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop11 /snap/snap-store/959 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop12 /snap/snapd/19457 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop13 /snap/snapd/20290 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/loop14 /snap/snapd-desktop-integration/83 squashfs ro,nodev,relatime,errors=continue,threads=single 0 0 /dev/nvme0n1p2 /var/snap/firefox/common/host-hunspell ext4 ro,noexec,noatime,errors=remount-ro 0 0 /dev/nvme0n1p1 /boot/efi vfat rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro 0 0 binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0 tmpfs /run/user/1000 tmpfs rw,nosuid,nodev,relatime,size=788440k,nr_inodes=197110,mode=700,uid=1000,gid=1000,inode64 0 0 gvfsd-fuse /run/user/1000/gvfs fuse.gvfsd-fuse rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0 portal /run/user/1000/doc fuse.portal rw,nosuid,nodev,relatime,user_id=1000,group_id=1000 0 0 tmpfs /run/snapd/ns tmpfs rw,nosuid,nodev,noexec,relatime,size=788444k,mode=755,inode64 0 0 nsfs /run/snapd/ns/snapd-desktop-integration.mnt nsfs rw 0 0 nsfs /run/snapd/ns/snap-store.mnt nsfs rw 0 0 nsfs /run/snapd/ns/firefox.mnt nsfs rw 0 0 /dev/sda1 /media/lucky/Jellyfin1 ext4 rw,nosuid,nodev,relatime,errors=remount-ro 0 0 RE: Ubuntu permissions - TheDreadPirate - 2023-12-09 For /dev/sda1 at the bottom, just use "defaults" instead of what you have there for the options. RE: Ubuntu permissions - FuzzyDunlop - 2023-12-09 How do I change that? I tried chmod 777, but nothing changed. |