Skip to content

Instantly share code, notes, and snippets.

@emaildano
Last active June 6, 2017 08:06
Show Gist options
  • Save emaildano/f8779dcbbc2c396df80b9c570133b909 to your computer and use it in GitHub Desktop.
Save emaildano/f8779dcbbc2c396df80b9c570133b909 to your computer and use it in GitHub Desktop.
AMIMOTO User Permissions

AMIMOTO User Permissions

Add ec2-user to nginx group

sudo usermod -a -G nginx ec2-user &&
exit

Update Owner & Permissions

sudo chown -R ec2-user:nginx /var/www &&
sudo chmod 2775 /var/www &&
find /var/www -type d -exec sudo chmod 2775 {} \; &&
find /var/www -type f -exec sudo chmod 0664 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment