Skip to content

Instantly share code, notes, and snippets.

@yuezk
Created December 6, 2015 02:44
Show Gist options
  • Save yuezk/32ca8003bb962e6861d3 to your computer and use it in GitHub Desktop.
Save yuezk/32ca8003bb962e6861d3 to your computer and use it in GitHub Desktop.
/var/www 的权限配置
# https://help.ubuntu.com/12.04/serverguide/httpd.html#http-directory-permissions
sudo chgrp -R webmasters /var/www
sudo find /var/www -type d -exec chmod g=rwxs "{}" \;
sudo find /var/www -type f -exec chmod g=rws "{}" \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment