Skip to content

Instantly share code, notes, and snippets.

@th3architect
Forked from chuckreynolds/permissions.sh
Last active August 29, 2015 14:07
Show Gist options
  • Save th3architect/0b12ec83aeb6b5bf119a to your computer and use it in GitHub Desktop.
Save th3architect/0b12ec83aeb6b5bf119a to your computer and use it in GitHub Desktop.
#!/bin/bash
find /var/www/public -type d -exec chmod 755 {} +
find /var/www/public -type f -exec chmod 644 {} +
chown -R www-data:www-data /var/www/public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment