Skip to content

Instantly share code, notes, and snippets.

View petsoukos's full-sized avatar
💭
Schnitzel Pizza

petsoukos

💭
Schnitzel Pizza
  • Thessaloniki, GR
  • 01:11 (UTC +03:00)
View GitHub Profile
@solancer
solancer / apache-nginx-ftp
Created July 27, 2016 10:53
Correct permissions for /var/www/html
// Adding current user to www-data
sudo adduser $USER www-data
//change ownership to user:www-data and
sudo chown $USER:www-data -R /var/www/html
sudo chmod u=rwX,g=srX,o=rX -R /var/www/html
// change file permissions of existing files and folders to 755/644
sudo find /var/www/html -type d -exec chmod g=rwxs "{}" \;