You are not logged in.

#1 2021-03-17 06:05:53

jerryDaBaaws
Member
Registered: 2020-06-08
Posts: 115

[SOLVED] Folder permission issue

I am having trouble setting up bazarr for my automated subtitle download and can't figure out what I'm doing wrong.

Media Folder(F) exist in my home directory which is recursive 775, owned by me as user of group `jellyfin` of which user `bazarr` is also a member .

here are the permissions of the folder :

Access: (0775/drwxrwxr-x)  Uid: ( 1000/   kushy)   Gid: (  972/jellyfin)

still, bazarr service keeps getting permission denied for saving any file in sub-directory of Folder F.

please help

Last edited by jerryDaBaaws (2021-03-17 11:26:23)

Offline

#2 2021-03-17 06:25:12

ponyrider
Member
Registered: 2014-11-18
Posts: 112

Re: [SOLVED] Folder permission issue

Read = 4
WRITE = 2
execute = 1

the number 5 = Read + Execute

you do not have WRITE permissions

Last edited by ponyrider (2021-03-17 06:25:25)

Offline

#3 2021-03-17 06:34:23

jerryDaBaaws
Member
Registered: 2020-06-08
Posts: 115

Re: [SOLVED] Folder permission issue

So I've to make it 777 ?

I was under the impression that if a group has write permission on a folder then members of that group will have too.  Please correct me on this if I'm wrong.

If not true, then what is the difference between other users vs users who are the member of jellyfin group over permissions of this folder ?

Offline

#4 2021-03-17 06:53:24

ponyrider
Member
Registered: 2014-11-18
Posts: 112

Re: [SOLVED] Folder permission issue

You are right actually. the Jellyfin name threw me, but you do say quite clearly. hmm

Offline

#5 2021-03-17 07:01:36

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [SOLVED] Folder permission issue

What's the result of `ps -O gid $(pgrep bazarr)` (assuming that bazarr is the name of the service process)?

Offline

#6 2021-03-17 07:03:51

jerryDaBaaws
Member
Registered: 2020-06-08
Posts: 115

Re: [SOLVED] Folder permission issue

PID   GID S TTY          TIME COMMAND
  34100   985 S pts/0    00:00:00 /usr/bin/zsh
  34148   985 R pts/0    00:00:00 ps -O gid

Offline

#7 2021-03-17 07:11:39

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [SOLVED] Folder permission issue

It's not running under the jellyfin group and the "others" permissions apply to it.

Last edited by tucuxi (2021-03-17 07:21:41)

Offline

#8 2021-03-17 07:33:28

jerryDaBaaws
Member
Registered: 2020-06-08
Posts: 115

Re: [SOLVED] Folder permission issue

this seems to be the actual issue, I'm looking into it

Offline

#9 2021-03-17 08:11:57

jerryDaBaaws
Member
Registered: 2020-06-08
Posts: 115

Re: [SOLVED] Folder permission issue

thanks this was the problem, originally root was running the process, changing it to my username and jellyfin group solved the problem. btw output of `ps -O gid $(pgrep bazarr)` is still the same as earlier, how do you infer that this was the issue ?

Offline

#10 2021-03-17 11:20:06

tucuxi
Member
From: Switzerland
Registered: 2020-03-08
Posts: 291

Re: [SOLVED] Folder permission issue

Not sure if the command caught the service. I don't what the right name to pgrep for would be. Find out the process id of the service and run it through the `ps` command. The gid should be 972.

Last edited by tucuxi (2021-03-17 11:20:37)

Offline

Board footer

Powered by FluxBB