Files
fusionpbx-install.sh/debian/resources/switch/package-permissions.sh
FusionPBX 14d1fb827e Update package-permissions.sh
Remove the facl and add +x to the directories to get groups working.

For installs using the facl can use this to remove them.

setfacl --remove-all -R /usr/share/freeswitch
setfacl --remove-all -R /var/log/freeswitch
setfacl --remove-all -R /etc/freeswitch
setfacl --remove-all -R /var/lib/freeswitch
2016-05-25 14:16:52 -06:00

23 lines
691 B
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 770 /var/lib/freeswitch
chmod -R g+s /var/lib/freeswitch
chown -R freeswitch:freeswitch /usr/share/freeswitch
chmod -R 770 /usr/share/freeswitch
#chmod -R 770 /usr/share/freeswitch/scripts
#chmod -R 770 /usr/share/freeswitch/lang
chmod -R g+s /usr/share/freeswitch
chown -R freeswitch:freeswitch /etc/freeswitch
chmod -R 770 /etc/freeswitch
chmod -R g+s /etc/freeswitch
chown -R freeswitch:freeswitch /var/log/freeswitch
chmod -R 770 /var/log/freeswitch
chmod -R g+s /var/log/freeswitch