Page 1 of 1

Help! Config.ini file in Synology showing "...reading: Permission denied"

Posted: June 23rd, 2024, 9:48 pm
by itabor
Apologies, complete newbie. Im running DSM 7 on a DS220+.

Trying to whitelist my server so SABnzbd will open (currently getting "Access denied - Hostname verification failed: ...hostname-check" message).

I managed to get into /var/packages/sabnzbd through SSH on Terminal on my Mac. Im accessing through the default admin account through the initial command "ssh account name@IP Address -p port number.

I can see the config.ini file to edit but it won't allow me to edit or copy the config.ini file in Terminal. I get this message: "cannot open 'config.ini' for reading: Permission denied".

A permissions command brings up the following for the folder files:
/var/packages/sabnzbd/var$ ls -l
total 24
drwxr-xr-x 1 sc-sabnzbd synocommunity   22 Jun 23 08:37 admin
-rw------- 1 sc-sabnzbd synocommunity 7700 Jun 23 08:37 config.ini
-rw------- 1 sc-sabnzbd synocommunity 7215 Jun 23 08:37 config.ini.bak
drwxr-xr-x 1 sc-sabnzbd synocommunity   56 Jun 23 08:37 logs
drwxr-xr-x 1 sc-sabnzbd synocommunity   20 Jun 23 08:36 pip-cache
-rw-r--r-- 1 sc-sabnzbd synocommunity  265 Jun 23 08:37 sabnzbd.log
-rw------- 1 sc-sabnzbd synocommunity    6 Jun 23 08:37 sabnzbd.pid
drwxr-xr-x 1 sc-sabnzbd synocommunity   24 Jun 23 08:36 scripts

A chmod 755 command for the config.ini file gives the following message: "chmod: changing permissions of 'config.ini': Operation not permitted"
Ive checked all user permissions (including for applications) in the GUI and can't see anything blocking permissions there. The ls -l command also shows rw permissions for config.ini file.

What am I missing? How can I edit the config.ini file to add the whitelist= line?

Note: DS220+ doesn't support Docket so I can't install SABnzbd through Docker.

Re: Help! Config.ini file in Synology showing "...reading: Permission denied"

Posted: June 23rd, 2024, 11:01 pm
by sander

Re: Help! Config.ini file in Synology showing "...reading: Permission denied"

Posted: June 24th, 2024, 12:13 am
by itabor
Update: I was able to read and copy the config.ini file with root access. 

In the config.ini file, my server name was already there but Ive added my QuickConnect IP as FQDN as well. Still no luck. Any ideas? 

Re: Help! Config.ini file in Synology showing "...reading: Permission denied"

Posted: June 24th, 2024, 12:35 am
by itabor
Solved! Just needed a full restart. Am in now :)

Re: Help! Config.ini file in Synology showing "...reading: Permission denied"

Posted: June 25th, 2024, 2:52 am
by itabor
sander wrote: June 23rd, 2024, 11:01 pm Did you read & try https://sabnzbd.org/wiki/extra/hostname ... address%2C
Hi Sander, I did and it was bringing up the same error message. Now that ive added the IP address to the whitelist, I can access it.