2024-01-27, 11:42 AM
(This post was last modified: 2024-01-27, 01:54 PM by FortySixnTwo. Edited 6 times in total.)
Files & folders are now mapped to users for the Jellyfin VM.
Still can't delete any files/folder using the webui which are owned by the media group but not the jellyfin user.
I can delete the files & folders using rm, when logged in as the jellyfin user via ssh.
So back again to the WebUI being unable to delete media but the user account being able to in shell.
User is no longer nobody, group owner is 'media'.
Files can be deleted.
Directories can also be deleted by the 'jellyfin' user.
Why does the WebUI not work with just group ownership & group wrx permissions when the jellyfin user account works with just group perms? Does the WebUI use a different user for deleting things?
Edit: WebUI WILL delete a folder or directory if the parent directory belongs the 'jellyfin' account. So it looks to me like the WebUI is either ignoring the group ownership or write permissions, or it's operating under sticky bit permissions even though I don't have sticky bit set.
Edit2: Does the WebUI use the account set in jellyfin.service.d.conf, 'jellyfin' for me, for all operations? That's the only thing i can think might be an issue at this point.
Still can't delete any files/folder using the webui which are owned by the media group but not the jellyfin user.
I can delete the files & folders using rm, when logged in as the jellyfin user via ssh.
So back again to the WebUI being unable to delete media but the user account being able to in shell.
User is no longer nobody, group owner is 'media'.
Code:
jellyfin@jellyfin:/root$ ls -l /shared/media/Film/[ITEM]
total 1436188
-rwxrwxr-x 1 1000 media 37 Oct 5 2021 '[FileName].txt'
-rwxrwxr-x 1 1000 media 609 Oct 5 2021 [filename].NFO
-rwxrwxr-x 1 1000 media 1470642428 Oct 5 2021 [item].avi
jellyfin@jellyfin:/root$ ls -l "/shared/media/Film/[item]/[filename].txt"
-rwxrwxr-x 1 1000 media 37 Oct 5 2021 '/shared/media/Film/[item]/[filename].txt'
Code:
jellyfin@jellyfin:/root$ rm "/shared/media/Film/[item]/[filename].txt"
jellyfin@jellyfin:/root$ ls -l "/shared/media/Film/[item]/[filename].txt"
ls: cannot access '/shared/media/Film/[item]/[filename].txt': No such file or directory
Code:
jellyfin@jellyfin:/root$ rm -rf /shared/media/Film/[item]/
jellyfin@jellyfin:/root$ ls -l /shared/media/Film/[item]/
ls: cannot access '/shared/media/Film/[item]/': No such file or directory
Why does the WebUI not work with just group ownership & group wrx permissions when the jellyfin user account works with just group perms? Does the WebUI use a different user for deleting things?
Edit: WebUI WILL delete a folder or directory if the parent directory belongs the 'jellyfin' account. So it looks to me like the WebUI is either ignoring the group ownership or write permissions, or it's operating under sticky bit permissions even though I don't have sticky bit set.
Edit2: Does the WebUI use the account set in jellyfin.service.d.conf, 'jellyfin' for me, for all operations? That's the only thing i can think might be an issue at this point.