Code: Select all
USER='someUsername'
DOMAIN='someDomain'
cd /home/$USER/web/$DOMAIN
find public_html/ -type d -exec chmod 755 {} +
find public_html/ -type f -exec chmod 644 {} +
chown -R $USER:$USER public_html/
Code: Select all
USER='someUsername'
DOMAIN='someDomain'
cd /home/$USER/web/$DOMAIN
find public_html/ -type d -exec chmod 755 {} +
find public_html/ -type f -exec chmod 644 {} +
chown -R $USER:$USER public_html/