Created
December 28, 2017 04:30
-
-
Save hurtsky/2dca95628bbce8568d59bea815a12a9b to your computer and use it in GitHub Desktop.
fix file/folder permission in vestcp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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