Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Drush: permission denied on remote server

I am trying to set drush up on a remote server. (a webserver by a provider)

I installed drush with composer via SSH, but when I try to run it, I get

-bash: /data/web/myusername/.composer/vendor/drush/drush/drush: Permission denied

drush has -rwxr-xr-x permissions

How would I verify if it is just the provider not allowing me to execute drush or simply a bug?

Edit: I found that i could run drush with bash drush, it seems to be a permission problem after all.

now the drush on my local machine would call the remote drush without the bash, so how could I change that/workaround?

like image 495
mtthias Avatar asked Dec 20 '22 00:12

mtthias


1 Answers

If still someone is facing permission issue while running drush command then run below commands sudo chmod -R 777 /vendor/drush

Note Drupal 8 Drush Commandline Tool 9.5.2

like image 115
Pranav Pathak Avatar answered Dec 31 '22 15:12

Pranav Pathak