Skip to content

Instantly share code, notes, and snippets.

@quan-vu
Created October 31, 2021 03:44
Show Gist options
  • Save quan-vu/5a27216344c845b409842e98f3ea8788 to your computer and use it in GitHub Desktop.
Save quan-vu/5a27216344c845b409842e98f3ea8788 to your computer and use it in GitHub Desktop.
How to Set all directories to 755 And all files to 644
cd /var/www/html
sudo chown -R www-data:www-data ./
sudo find . -type d -exec chmod 0755 {} \;
sudo find . -type f -exec chmod 0644 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment