Just a follow up from the previous permissions topic;
I have installed a fresh copy of sabnzbd from the plugins page in the GUI but when i try change the download folders to my media in sab i get the error "cannot create download dir_ folder /mnt/media"
My user (CHRIS) and group (USERS) UID in freenas is 1001
Steps i have taken to try fix:
when i try to see the permissions on the fresh install of the var/db/sabnzbd folder it's set to media
Code:
root@sabnzbd_1:/ # ls -l var/db/sabnzbd
total 21
drwxrwxrwx 3 media media 3 Oct 15 16:47 Downloads
drwxrwxrwx 2 media media 3 Oct 15 16:47 admin
drwxrwxrwx 2 media media 4 Oct 15 16:47 logs
-rw------- 1 media media 7533 Oct 15 16:48 sabnzbd.ini
-rw------- 1 media media 7053 Oct 15 16:48 sabnzbd.ini.bak
So I found this:
https://forums.freenas.org/index.ph...plugins-write-permissions-to-your-data.27273/
and done Solution 2 so i typed the following:
Code:
pw useradd -n chris -u 1001 -d /nonexistent -s /usr/sbin/nologin
service sabnzbd onestop
chown -R 10001:1001 /var/db/sabnzbd
sysrc 'sabnzbd_user=chris'
service sabnzbd onestart
(console error saying illegal group name when typing as chris:users for the chown so i instead used 1001:10001, not sure if that is correct)
But after i type onestart i get the error:
Code:
root@sabnzbd_1:/ # service sabnzbd onestart
Starting sabnzbd.
Fatal error:
"/var/db/sabnzbd/sabnzbd.ini" is not a valid configuration file<br>Error message: [Errno 13] Permission denied: '/var/db/sabnzbd/sabnzbd.ini'
Specify a correct file or delete this file.
/usr/local/etc/rc.d/sabnzbd: WARNING: failed to start sabnzbd
and when i do:
Code:
root@sabnzbd_1:/ # ls -l var/db/sabnzbd
total 39
drwxr-xr-x 3 10001 chris 3 Oct 15 16:57 Downloads
drwxr-xr-x 2 10001 chris 8 Oct 15 17:01 admin
drwxr-xr-x 2 10001 chris 4 Oct 15 16:57 logs
-rw------- 1 10001 chris 7516 Oct 15 17:01 sabnzbd.ini
-rw------- 1 10001 chris 7516 Oct 15 17:01 sabnzbd.ini.bak
So another road block and i'm not sure how to fix
EDIT: when i was doing the chown i was putting an extra 0
All seems to be fine now
