Skip to content

Instantly share code, notes, and snippets.

@vgrish
Created April 14, 2014 09:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vgrish/10630042 to your computer and use it in GitHub Desktop.
Save vgrish/10630042 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Set permissions for /var/www/photo-angel.kz/www...";
echo "CHOWN files...";
chown -R photo-angel:photo-angel "/var/www/photo-angel.kz/www";
echo "CHMOD directories...";
find "/var/www/photo-angel.kz/www" -type d -exec chmod 0755 '{}' \;
echo "CHMOD files...";
find "/var/www/photo-angel.kz/www" -type f -exec chmod 0644 '{}' \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment