Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. sudo chown -R www-data:www-data /srv/www
  2.  
  3. sudo find /srv/www/ -type f -exec sudo chmod 644 {} ;
  4. sudo find /srv/www/ -type d -exec sudo chmod 755 {} ;
  5.  
  6. sudo adduser shea www-data
  7.  
  8. touch: cannot touch ‘/srv/www/foo’: Permission denied
  9.  
  10. sudo chown -R shea:www-data /srv/www
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement