Skip to content

Instantly share code, notes, and snippets.

@andmetoo
Created July 28, 2017 07:08
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 andmetoo/5ca9afa70f8fc83814e23e60efb9738b to your computer and use it in GitHub Desktop.
Save andmetoo/5ca9afa70f8fc83814e23e60efb9738b to your computer and use it in GitHub Desktop.
Rewrite web data directory chmod
sudo chown -R www-data:www-data /var/www
sudo chmod -R g+rw /var/www
adduser grigory
su grigory
mkdir .ssh
chmod 700 .ssh
cd .ssh
usermod -a -G www-data grigory
usermod -g www-data grigory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment