newly created folders to take main folder permissions

RoCkFoRdGuN

Well-Known Member
Joined
Apr 15, 2010
Messages
287
Reaction score
5
Hi there
So i have this very wierd issue
Im running NZBget, Sonarr, Radarr.
Each program has its own user
1. nzbget
2. radarr
3. sonarr
Now everything is working perfectly but im running into a small permissions issue.
So NZBget places finish unrar folders into a movie folder that has the permissions for NZBget.
So when Radarr tries to pull the folder out of there to rename it doesnt have any rights.
If i go and i manually give radarr righs it works.

So thats where my issue comes in. I have a main folder called movies with the correct permissions but when a new folder gets created it doesnt have the same rights as the main folder.
I have tried recursive but it works for that one time as soon as i get a new download it changes the rights again.

Is there anyone that nows how I can inherit permissions from the main folder?
 
What OS?

****

Oh it’s under the Linux section.

Put the users in the same group and give that group access to the top level folders.

Alternatively you can change your umask to make this work better for you.

But why does each thing have its own user in the first place? Why not just run it all with one and the same user then you don’t have any of these issues.


Another way is using GID and giving group based permissions upon creation.

And then there are also ACL’s but now it gets complicated for no reason.

Honestly make it all run under one user and save yourself the pain. Even better, put them all in Dockers.
 
Last edited:
What OS?

****

Oh it’s under the Linux section.

Put the users in the same group and give that group access to the top level folders.

Alternatively you can change your umask to make this work better for you.

But why does each thing have its own user in the first place? Why not just run it all with one and the same user then you don’t have any of these issues.


Another way is using GID and giving group based permissions upon creation.

And then there are also ACL’s but now it gets complicated for no reason.

Honestly make it all run under one user and save yourself the pain. Even better, put them all in Dockers.
Hi Sauronza

Running linux Mint
The 3 programs create there own users basically so each one needs there permissions.

I have created a group "media" with sonarr, radarr, nzbget there permissions are 775 for the folders but when a new folder gets created it gives that group just gets access to the folder not read and write access.

The umask is already set to 0002.

GID wil be fstab setup right?
 
Hi Sauronza

Running linux Mint
The 3 programs create there own users basically so each one needs there permissions.

I have created a group "media" with sonarr, radarr, nzbget there permissions are 775 for the folders but when a new folder gets created it gives that group just gets access to the folder not read and write access.

The umask is already set to 0002.

GID wil be fstab setup right?

No no, it's a permission on the folder.


So you need to set the GID for the folder so that it does exactly what you want by giving the Group the particular permissions.

Read the bit at the bottom "Set GID bit".
 
No no, it's a permission on the folder.


So you need to set the GID for the folder so that it does exactly what you want by giving the Group the particular permissions.

Read the bit at the bottom "Set GID bit".
Hi Sauronza tried SetGID last night didnt work. Im sure tho thats the issue so doing some more reading on it. I created a total new group with the collaboration group.

Added all the users then
 
Hi Soureonza

So the Setgid part i set in place but its still the same for some reason.

radarr@mediacentre:/mnt/Movie/NZBget/Movies$ ls -l
total 4
drwxr-sr-x 2 anton usenet 4096 Aug 18 07:19 Filename

I created a new group with the collaborative 415 added the group to the dir everything works until theres a new file again. I even deleted the file and let that user that im struggling with add the folder name.
 
Did you run “chmod 2775 /tmp/collaborative_dir” after setting up the group etc?

Because that doesn’t look like it’s been setup.
 
Had a look its definetly gone through the "S" shows setgid or thats what i have read
drwxr-Sr-x 2
 
VICTORYYYYYYYY
I got it working in the end it was NZBget theres a umask setting in security that wasnt set correctly.
Sauronza thx a mil you helped alot
 
Top
Sign up to the MyBroadband newsletter
X