Files
fusionpbx-install.sh/debian/resources/switch/package-permissions.sh
FusionPBX b6eeed2089 Update package-permissions.sh
Adding setfacl in for now.
2016-05-24 05:28:40 -06:00

39 lines
1.4 KiB
Bash

#add users to the groups
usermod -a -G freeswitch www-data
usermod -a -G www-data freeswitch
#setup owner and group, permissions and sticky
chown -R freeswitch:freeswitch /var/lib/freeswitch
chmod -R 760 /var/lib/freeswitch
chmod -R g+s /var/lib/freeswitch
chown -R freeswitch:freeswitch /usr/share/freeswitch
chmod -R 760 /usr/share/freeswitch
chmod -R 760 /usr/share/freeswitch/scripts
chmod -R 760 /usr/share/freeswitch/lang
chmod -R g+s /usr/share/freeswitch
chown -R freeswitch:freeswitch /etc/freeswitch
chmod -R 760 /etc/freeswitch
chmod -R g+s /etc/freeswitch
chown -R freeswitch:freeswitch /var/log/freeswitch
chmod -R 760 /var/log/freeswitch
chmod -R g+s /var/log/freeswitch
#file access control lists
setfacl -R -m u:www-data:rwx,g:www-data:rwx /var/lib/freeswitch
setfacl -R -d -m u:www-data:rwx,g:www-data:rwx /var/lib/freeswitch
setfacl -R -m u:www-data:rwx,g:www-data:rwx /usr/share/freeswitch
setfacl -R -d -m u:www-data:rwx,g:www-data:rwx /usr/share/freeswitch
setfacl -R -m u:www-data:rwx,g:www-data:rwx /etc/freeswitch
setfacl -R -d -m u:www-data:rwx,g:www-data:rwx /etc/freeswitch
setfacl -R -m u:www-data:rwx,g:www-data:rwx /var/log/freeswitch
setfacl -R -d -m u:www-data:rwx,g:www-data:rwx /var/log/freeswitch
setfacl -R -m u:www-data:rwx,g:www-data:rwx /usr/share/freeswitch/sounds
setfacl -R -d -m u:www-data:rwx,g:www-data:rwx /usr/share/freeswitch/sounds