This is from the root of my TV Shows folder:al3x wrote: ↑03 Feb 2018, 15:20Permissions in linux work like that: You have an owner, a group and then there's "others".
A folder might have these permissions: drwxrwxrwx
That means: d = directory, r = read, w = write, x = execute file or access directory
The first 3 rwx mean: Owner can read, write, execute/access
Next 3 mean: Group can read, write, execute/access
Last 3 mean: Everyone else can read, write, execute/access
So you need to make sure your folder permissions are set properly so every user can access it.
You didn't say what your folder permissions were exactly, but I assume it's something like drwx------ which means only the owner has access. A simple fix would be to give everyone access with something like "chmod 777 [your folder]".
Maybe that's all it needs.
There is a thing called "umask", which determines what permissions new files get (if the program which creates them doesn't set permissions explicitly). You can set UMask using system command "umask" and you should do that before launching the programs which create files. In nzbget you can also use option UMask for that.road hazard wrote: ↑03 Feb 2018, 23:35so looks like sonarr and nzbget don't have write access. But, I added both those accounts to the 'users' group
Was looking at my Mint setup and turns out I am indeed running NZBGet and Sonarr under my account. But with Antergos, I've been having zero luck getting those programs to run under my account. The Arch wiki has steps to do this with NZBGet but the steps they use..... I can't find a directory with Antergos that they reference, which is weird to me since Antergos is based on Arch. I also see that the Arch wiki isn't newbie friendly (at least with my current knowledge of Linux. How they talk about editing files and when they stack commands..... those are stumbling blocks for me.al3x wrote: ↑04 Feb 2018, 04:33Yeah, as hugbug already wrote, umask is the way to go here.
You could set the umask in nzbget to "002", which means newly created files/folders will get permission rw-rw-r or rwxrwxr-x, resp.
Sonarr has a similar option hidden in settings (turn on advanced settings): Permissions - File chmod mask / Folder chmod mask. This works the opposite of umask, so this should be set to: Files: 0664, Folders: 0775.
Then there's still another problem: Your user accounts don't use group "users" as default. Instead you use the groups "nzbget" and "sonarr". Although you gave both users access to group "users", they're still not the default. So newly created folders and files won't use "users" as group.
To make your new umask settings work those users need to have the same default group. You could change that in linux directly - or you can set the "setgid" access flag for the main folder (e.g. "/TV Shows"). Newly created folders/files will then inherit the group of that main folder which is "users". To set this flag: chmod g+s /TV\ Shows
And you would need to change the permissions of those files/folders already in that directory:
chgrp -R users /TV\ Shows
chmod -R g+w /TV\ Shows
Or - you know, you could just use the same user account for those tools. Hugbug's right, it's far easier
Users browsing this forum: Google [Bot] and 52 guests