Apply config not written data base changes in conf file

when i press the apply data base changes not written in
/etc/asterisk/extensions_additional.conf file
But it return
Unknown Error Please run /var/lib/asterisk/retrieve_conf
And once i tried to run /var/lib/asterisk/retrieve_conf file in terminal
i return only asterisk
But still data base changes not written in
/etc/asterisk/extensions_additional.conf file

Check your permissions.

When I list files with permission in /etc then output is following
[root@freepbx etc]# ls -al o*
-rw-r–r--. 1 root root 197 May 7 01:00 odbc.ini
-rw-r–r--. 1 root root 577 Aug 5 2015 odbcinst.ini
-rw-r–r--. 1 root root 423 Dec 13 2017 os-release

openal:
total 28
drwxr-xr-x. 2 root root 25 May 7 00:51 .
drwxr-xr-x. 106 root root 8192 Aug 30 13:22 …
-rw-r–r--. 1 root root 13592 Aug 15 2014 alsoft.conf

openldap:
total 16
drwxr-xr-x. 3 root root 36 May 7 01:13 .
drwxr-xr-x. 106 root root 8192 Aug 30 13:22 …
drwxr-xr-x. 2 root root 70 May 7 00:50 certs
-rw-r–r--. 1 root root 365 May 7 01:13 ldap.conf

openvpn:
total 12
drwxr-xr-x. 5 root root 50 May 7 00:51 .
drwxr-xr-x. 106 root root 8192 Aug 30 13:22 …
drwxr-x—. 2 root root 6 Sep 26 2017 client
drwxr-xr-x. 5 root root 190 May 7 00:51 easyrsa3
drwxr-x—. 2 root root 6 Sep 26 2017 server

opt:
total 12
drwxr-xr-x. 2 root root 6 Nov 5 2016 .
drwxr-xr-x. 106 root root 8192 Aug 30 13:22 …

So I need to know what changes required to run apply config function correctly

chown asterisk:asterisk /etc/odbc.ini

That should be the only one…

[root@srv-a etc]# ls -al o*
-rw-r–r-- 1 asterisk asterisk 181 Mar 16 2015 odbc.ini
-rw-r–r-- 1 root root 209 Jan 30 2014 odbc.ini.freepbx-template
-rw-r–r-- 1 root root 326 Mar 16 2015 odbcinst.ini
-rw-r–r-- 1 root root 127 Jan 30 2014 odbcinst.ini.freepbx-template

openldap:
total 24
drwxr-xr-x 3 root root 4096 Mar 22 2017 .
drwxr-xr-x 104 root root 12288 Aug 28 03:18 …
drwxr-xr-x 2 root root 4096 Mar 22 2017 certs
-rw-r–r-- 1 root root 282 Mar 16 2015 ldap.conf

openr2:
total 28
drwxr-xr-x 2 root root 4096 Mar 16 2015 .
drwxr-xr-x 104 root root 12288 Aug 28 03:18 …
-rw-r–r-- 1 root root 2629 Jun 26 2014 r2proto.conf
-rw-r–r-- 1 root root 5846 Jun 26 2014 r2test.conf

opt:
total 16
drwxr-xr-x 2 root root 4096 Sep 23 2011 .
drwxr-xr-x 104 root root 12288 Aug 28 03:18 …

Well, in doing a ls -al | sort -k3, I noticed that:

-rw-rw----   1 asterisk asterisk  17710 Aug 31 08:45 amportal.conf
-rw-r--r--   1 asterisk asterisk    181 Mar 16  2015 odbc.ini
-rw-rw----   1 asterisk asterisk    336 Dec 15  2016 freepbx.conf
drwxr-xr-x   2 asterisk asterisk   4096 Feb 14  2017 dahdi

So there are your permissions in /etc

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.