#!/bin/bash leed_path='/usr/share/webapps/leed' htuser='http' htgroup='http' find ${leed_path}/ -type f -exec chmod 0640 {} \; find ${leed_path}/ -type d -exec chmod 0750 {} \; chown -R ${htuser}:${htgroup} ${leed_path}/