When FreePBX is started, one of the processes is setting permissions on all Asterisk files. We want to exclude the /tmp directory being owned by the asterisk user/group and prevent setting tight permissions which actually leads to a 'broken' system, due to the importance of the /tmp directory for many other (non Asterisk) related processes and applications such as Mysql.
+
+
The default settings for the /tmp directory is root:root and 4177 that can be applied (or recovered):
+
chown -R root:root /tmp
+
chmod 4177 /tmp/*
+
+
To exclude the /tmp directory from being altered we need to create the '/etc/asterisk/freepbx_chown.conf''' additional config file manually and enter the following content:
+
[blacklist]
+
directory = /tmp/
+
Now you can stopt/start the freepbx service and the /tmp directory will still have the proper settings.