#!/bin/bash ROOT_PATH=/opt/glpi chown -R root:root $ROOT_PATH find $ROOT_PATH -type d -exec chmod u=rwx,g=rwx,o=rx {} \; find $ROOT_PATH -type f -exec chmod u=rw,g=rw,o=r {} \; chown -R www-data:www-data $ROOT_PATH/files find $ROOT_PATH/files -type d -exec chmod u=rwx,g=rwx,o= {} \; find $ROOT_PATH/files -type f -exec chmod u=rw,g=rw,o= {} \; chown -R www-data:www-data $ROOT_PATH/config chmod -R u=rw,g=rw,o= $ROOT_PATH/config/*.php