Skip to content

Instantly share code, notes, and snippets.

@hurtsky
Created December 28, 2017 04:30
Show Gist options
  • Save hurtsky/2dca95628bbce8568d59bea815a12a9b to your computer and use it in GitHub Desktop.
Save hurtsky/2dca95628bbce8568d59bea815a12a9b to your computer and use it in GitHub Desktop.
fix file/folder permission in vestcp
find /home/admin/web/<domainfolder>/public_html -type d -print0 | xargs -0 chmod 755
find /home/admin/web/<domainfolder>/public_html -type f -print0 | xargs -0 chmod 644
chown -R root:root /home/admin/web/<domainfolder>/public_html/.git
chown root:root /home/admin/web/<domainfolder>/public_html/.gitignore
chmod g+s /home/admin/web/<domainfolder>/public_html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment