Skip to content

Instantly share code, notes, and snippets.

@jacks0n
Last active August 29, 2015 14:01
Show Gist options
  • Save jacks0n/42410da03f7921cb3408 to your computer and use it in GitHub Desktop.
Save jacks0n/42410da03f7921cb3408 to your computer and use it in GitHub Desktop.
Fixes / restores permissions for most CMSs
# General
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
# Magento
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod 550 mage # For magento 1.5+
# Joomla
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
chmod 707 images
chmod 707 cache
# Scripts
find . -iname '*.sh' -exec chmod +x {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment