Possible Duplicate:
Redirecting stdout to a file you don't have write permission on
I'm trying to install drupal according to the instructions given in this tutorial: http://how-to.linuxcareer.com/how-to-install-drupal-7-on-ubuntu-linux and am stuck on a step:
$ cd /etc/apache2/sites-available
$ sudo sed 's/www/www\/drupal/g' default > drupal
bash: drupal: Permission denied
The permissions for /var/www/drupal
are set to 777.