I'm trying to install and use drush but, I get the error "-dash: drush: Permission denied"

This is what I did to install drush:

I downloaded drush and untared it in /opt
chmod 777 /opt/drush (I tried u+x and that gave the above error so I tried 777)
ln -s /opt/drush /usr/bin/drush

drupal is located in /var/www
so I did
cd /var/www
drush -l http://mysite.com help (I'm using a drupal multisite installation)

and then I get the error

-dash: drush: Permission denied

could someone please point what I'm doing incorrectly ?

Comments

kdes’s picture

any clues ? please.

clemens.tolboom’s picture

Try --verbose.

moshe weitzman’s picture

Status: Active » Fixed

also try the drush bash script that is now in HEAD. please reopen as needed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.