portainer on linux sabnzbd folder perms .. i dunno anymore

Angelus

New Member
Credits
27
Good Day

I hope that you are well

I've been busy learning my linux system and i have gotten much further then last time and I'm stuck with this one issue that i just can not work out.
i have read so many wiki pages lol i just don't know anymore.

I'm running portainer on endevouros (terminal centric arch based distro) and i have sabnzbd installed and sitting at the setup wizard at the folders section, and i keep getting an error of the folders can not be created when trying to enter my destination folders into the fields.

i have 2 users being sabnzbd and angelus who are both part of a group called media

[[email protected] ~]$ id sabnzbd
uid=967(sabnzbd) gid=1002(media) groups=1002(media)
[[email protected] ~]$ id angelus
uid=1000(angelus) gid=1001(angelus) groups=1001(angelus),3(sys),998(wheel),984(users),982(rfkill),1000(autologin),1002(media)
in portainer I'm using uid=1000 and gid=1001

when trying to change the group on the drive below it doesn't take, if i go right click properties and then go permissions and change the group to "media" thinking that perhaps then sabnzbd can do what it needs to, being that is part of the "media" group

[[email protected] EX300]# ls -al /run/media/angelus/EX300/
total 100504
drwxrwxrwx 1 angelus angelus 20480 Apr 28 09:52 .
drwxr-x---+ 4 root root 80 Apr 28 12:48 ..
drwxrwxrwx 1 angelus angelus 4096 Sep 29 2018 '$RECYCLE.BIN'
drwxrwxrwx 1 angelus angelus 0 Apr 28 09:52 Downloads
drwxrwxrwx 1 angelus angelus 0 Apr 28 09:52 Incomplete
drwxrwxrwx 1 angelus angelus 101240832 Apr 15 18:07 new
drwxrwxrwx 1 angelus angelus 12288 Apr 27 18:21 'New folder'
drwxrwxrwx 1 angelus angelus 1523712 Apr 27 16:28 nzb
drwxrwxrwx 1 angelus angelus 4096 Sep 14 2017 RECYCLER
drwxrwxrwx 1 angelus angelus 4096 Aug 10 2018 'System Volume Information'
drwxrwxrwx 1 angelus angelus 0 Apr 27 15:19 .Trash-1000
i'm trying to point sabnzbd folders to "/run/media/angelus/EX300/Downloads/" and "/run/media/angelus/EX300/Incomplete/" but then is says it can not create those folders

in portainer i have it set in volume settings like this ;

container /config
host /portainer/Files/Appdata/Config/Sabnzbd

container /downloads
host /run/media/angelus/EX300/Downloads/

container /incomplete-downloads
host /run/media/angelus/EX300/Incomplete/
a few things that i remember that i have done;

mmm i did change the umask of that above drive to 002 but now i see its back to 0022, btw the drive is an external usb drive that i'm wanting to use

[[email protected] EX300]# umask
0022
[[email protected] EX300]# umask -S
u=rwx,g=rx,o=rx
apologies for the long post but I'm trying to provide as much info as i can

many thanks for you assistance
 


f33dm3bits

Gold Member
Gold Supporter
Credits
16,567
I'm not familiar with Portainer but you will either have to make sure that the users/groups used for those directories on the host which you are using as volumes in your container are also available in the container or you will have to do something will user/group mapping.

Seems like the official sabnzbd image supports configure a custom user and group.
So you could try setting the user to sabnzbd and the group to media.
 
Last edited:
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Staff online

Members online


Latest posts

Top