Skip to content

Instantly share code, notes, and snippets.

@webmasterninjay
Created February 21, 2015 08:20
Show Gist options
  • Save webmasterninjay/2c914cb04d0d27456590 to your computer and use it in GitHub Desktop.
Save webmasterninjay/2c914cb04d0d27456590 to your computer and use it in GitHub Desktop.
Linux command to add user, change owner and change folder permission
sudo adduser <username> www-data
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rw /var/www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment