Skip to content

Instantly share code, notes, and snippets.

@izazueta
Created May 9, 2014 17:08
Show Gist options
  • Save izazueta/1c64a2634ab064074273 to your computer and use it in GitHub Desktop.
Save izazueta/1c64a2634ab064074273 to your computer and use it in GitHub Desktop.
Change all files or folder permissions with chmod
#!/bin/bash
# files
sudo find . -type f -exec chmod 644 {} +
# folders
sudo find . -type d -exec chmod 755 {} +
#!/bin/bash
# files
sudo find . -type f -exec chmod 644 {} +
# folders
sudo find . -type d -exec chmod 755 {} +
# wp-config.php
sudo chmod 600 wp-config.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment