2024-10-06, 10:45 PM
(2024-10-06, 04:32 PM)TheDreadPirate Wrote: You've allowed your OS to auto-mount the drive and it is protected by an ACL (access control list) and that is preventing Jellyfin from reading anything.
I recommend you follow my guide to properly mount the hard drive.
https://forum.jellyfin.org/t-mounting-lo...ons-primer
This is how I setup my fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/nvme0n1p2 during installation
UUID=f8790cb1-8886-419e-98cd-1c209d0c18c1 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/nvme0n1p1 during installation
UUID=35D6-F012 /boot/efi vfat umask=0077 0 1
/swapfile none swap sw 0 0
UUID=8e912da4-d767-4c10-989d-d16c59c6f78d /media/jcitx/hdd01 ext4 defaults 0 0
UUID=6871d982-c4bc-4bf4-a47c-965a3f00da47 /media/jcitx/hdd02 ext4 defaults 0 0
UUID=667f3005-a874-4e78-b86f-e855feac675b /media/jcitx/ssd01 ext4 defaults 0 0
jcitx@jcitx:~$
As I understand things, chmod does not affect newly created files/directories (highlighted green). I edited my OP but I mentioned whether I needed to create an ACL so that new files/directories would inherit the permissions of the parent folder. In my examples you can see new libraries I create at the mount points and new shows I add in their libraries have to be manually updated.
If I need to do a setfacl, where should I do it?
ls -l, ls -ld of mounted points
jcitx@jcitx:~$ cd /media/jcitx
jcitx@jcitx: /media/jcitx$ ls -ld
drwxr-xr-x 5 root root 4096 Sep 30 13:05 .
jcitx@jcitx: /media/jcitx$ ls -l
total 12
drwxrwxrwx 9 jcitx jellyfin 4096 Oct 6 22:14 hdd01
drwxrwxrwx 9 jcitx jellyfin 4096 Oct 2 03:04 hdd02
drwxrwxrwx 8 jcitx jellyfin 4096 Oct 6 22:27 ssd01
jcitx@jcitx: /media/jcitx$ cd hdd01
jcitx@jcitx: /media/jcitx/hdd01$ ls -ld
drwxrwxrwx 9 jcitx jellyfin 4096 Oct 6 22:14 .
jcitx@jcitx: /media/jcitx/hdd01$ ls -l
total 24
drwxrwxrwx 2 jcitx jellyfin 4096 Sep 27 20:43 'animated movies'
drwxrwxrwx 6 jcitx jellyfin 4096 Oct 4 23:31 'animated series'
drwxrwxrwx 22 jcitx jellyfin 4096 Oct 6 02:46 anime
drwxrwxrwx 2 jcitx jellyfin 4096 Sep 27 20:43 movies
drwxr-xr-x 2 jcitx jcitx 4096 Oct 6 22:14 new
drwxrwxrwx 3 jcitx jellyfin 4096 Sep 29 22:09 'tv shows'
jcitx@jcitx: /media/jcitx/hdd01$ cd ..
jcitx@jcitx: /media/jcitx$ cd hdd02
jcitx@jcitx: /media/jcitx/hdd02$ ls -ld
drwxrwxrwx 9 jcitx jellyfin 4096 Oct 2 03:04 .
jcitx@jcitx: /media/jcitx/hdd02$ ls -l
total 24
drwxrwxrwx 2 jcitx jellyfin 4096 Sep 27 20:44 'animated movies'
drwxrwxrwx 2 jcitx jellyfin 4096 Sep 27 20:44 'animated series'
drwxrwxrwx 2 jcitx jellyfin 4096 Oct 2 03:39 anime
drwxrwxrwx 2 jcitx jellyfin 4096 Sep 27 20:44 movies
drwxrwxr-x 4 jcitx jcitx 4096 Oct 6 18:00 temp
drwxrwxrwx 2 jcitx jellyfin 4096 Sep 27 20:44 'tv shows'
jcitx@jcitx: /media/jcitx/hdd02$ cd ..
jcitx@jcitx: /media/jcitx$ cd ssd01
jcitx@jcitx: /media/jcitx/ssd01$ ls -ld
drwxrwxrwx 8 jcitx jellyfin 4096 Oct 6 22:27 .
jcitx@jcitx: /media/jcitx/ssd01$ ls -l
total 24
drwxrwxrwx 2 jcitx jellyfin 4096 Sep 30 15:17 'animated movies'
drwxrwxrwx 2 jcitx jellyfin 4096 Sep 30 15:17 'animated series'
drwxrwxrwx 2 jcitx jellyfin 4096 Sep 30 15:17 anime
drwxrwxrwx 2 jcitx jellyfin 4096 Sep 30 15:17 movies
drwxr-xr-x 2 jcitx jcitx 4096 Oct 6 22:27 new
drwxrwxrwx 2 jcitx jellyfin 4096 Sep 30 15:17 'tv shows'
-----------------------------------------------------------------------------------------------------------------------------------------
ls -l, ls -ld, getfacl for directory in logfile
[2024-10-06 01:51:27.232 +01:00] [ERR] UnauthorizedAccessException - Access to path "/media/jcitx/hdd01/animated series/South Park/season13-poster.jpg" is denied. Will retry saving to "/var/lib/jellyfin/metadata/library/ba/bacf06438242985b91d69b504131e253/poster.jpg"
jcitx@jcitx: /media/jcitx$ cd hdd01
jcitx@jcitx: /media/jcitx/hdd01$ cd 'animated series'
jcitx@jcitx: /media/jcitx/hdd01/animated series$ ls -ld
drwxrwxrwx 6 jcitx jellyfin 4096 Oct 4 23:31 .
jcitx@jcitx: /media/jcitx/hdd01/animated series$ ls -l
total 16
drwxr-xr-x 4 jcitx jcitx 4096 Oct 4 23:31 'Afro Samurai'
drwxr-xr-x 12 jcitx jcitx 4096 Oct 4 21:08 'South Park'
drwxr-xr-x 2 jcitx jcitx 4096 Oct 4 19:45 Spawn
drwxr-xr-x 6 jcitx jcitx 4096 Oct 4 23:35 'The Boondocks'
jcitx@jcitx: /media/jcitx/hdd01/animated series$ getfacl /media/jcitx
getfacl: Removing leading '/' from absolute path names
# file: media/jcitx
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
jcitx@jcitx: /media/jcitx/hdd01/animated series$ getfacl /media/jcitx/hdd01
getfacl: Removing leading '/' from absolute path names
# file: media/jcitx/hdd01
# owner: jcitx
# group: jellyfin
user::rwx
group::rwx
other::rwx
jcitx@jcitx: /media/jcitx/hdd01/animated series$ getfacl /media/jcitx/hdd01/'animated series'
getfacl: Removing leading '/' from absolute path names
# file: media/jcitx/hdd01/animated series
# owner: jcitx
# group: jellyfin
user::rwx
group::rwx
other::rwx
jcitx@jcitx: /media/jcitx/hdd01/animated series$ getfacl /media/jcitx/hdd01/'animated series'/'South Park'
getfacl: Removing leading '/' from absolute path names
# file: media/jcitx/hdd01/animated series/South Park
# owner: jcitx
# group: jcitx
user::rwx
group::r-x
other::r-x
-----------------------------------------------------------------------------------------------------------------------------------------
getfacl of mount points
jcitx@jcitx:~$ getfacl /media/jcitx
getfacl: Removing leading '/' from absolute path names
# file: media/jcitx
# owner: root
# group: root
user::rwx
group::r-x
other::r-x
jcitx@jcitx:~$ getfacl /media/jcitx/hdd01
getfacl: Removing leading '/' from absolute path names
# file: media/jcitx/hdd01
# owner: jcitx
# group: jellyfin
user::rwx
group::rwx
other::rwx
jcitx@jcitx:~$ getfacl /media/jcitx/hdd02
getfacl: Removing leading '/' from absolute path names
# file: media/jcitx/hdd02
# owner: jcitx
# group: jellyfin
user::rwx
group::rwx
other::rwx
jcitx@jcitx:~$ getfacl /media/jcitx/ssd01
getfacl: Removing leading '/' from absolute path names
# file: media/jcitx/ssd01
# owner: jcitx
# group: jellyfin
user::rwx
group::rwx
other::rwx