Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. $ gksudo -u -www-data krusader
  2. No protocol specified
  3. krusader: cannot connect to X server :0.0
  4.  
  5. DocumentRoot /home/user/my-project/my-document-root
  6.  
  7. xhost +SI:localuser:uname
  8. gksudo -u uname -l "firefox"
  9. xhost -SI:localuser:uname
  10.  
  11. $ sudo su www-data
  12. [sudo] password for <your username>: [enter your password]
  13. $ whoami
  14. (you should see www-data here)
  15.  
  16. /var/www$ sudo chown -R [your-username]:[your-group] *
  17. /var/www$ find . -type d -exec chmod a+rx {} ;
  18. /var/www$ find . -type f -exec chmod a+r {} ;
  19.  
  20. xhost +SI:localuser:<user-to-run-as>
  21.  
  22. sudo su - <user-to-run-as>
  23.  
  24. krusader
  25.  
  26. sudo adduser $USER www-data
  27.  
  28. sudo chown www-data:www-data /var/www/file
  29. chmod g+w /var/www/file
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement