Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In restricted aegir shell (user o1.ftp) there is an issue while parsing commandline (alias expansion?).
It's enough to have "drush" written anywhere in the string to get an error.
The shell give the alert as if we tried to invoke drush from an invalid path...
o1.ftp:~$ vi nonsensedrushnonsense.txt
This drush command can not be run in /home/o1.ftp
Please cd to the valid sites/foo.com directory first
or use a valid @alias, for example: drush @foo.com status
Hint: Use 'drush aliases' command to see all available aliases
Comments
Comment #1
omega8cc CreditAttribution: omega8cc commentedYou should not use "drush" keyword in the path or site names.
Comment #2
netdreamer CreditAttribution: netdreamer commentedOk... but what if i need to edit a text file where drush is just a simple part of the name?!?
I was trying to fix a module (module.drush.inc) with a simple "vi nameofthemodule.drush.inc" and it was forbidden.
Then i tried something stupid: in my home directory, i worte a textfile called blabladrushblabla.txt and it was also forbidden... it's a bit too much aggressive, I think!
Comment #3
omega8cc CreditAttribution: omega8cc commentedYeah, the problem is that it is hard to avoid this without opening security holes in current hardened setup.
Comment #4
omega8cc CreditAttribution: omega8cc commentedActually, we should fix this, I think.
~Grace
Comment #6
omega8cc CreditAttribution: omega8cc commentedFixed in https://github.com/omega8cc/boa/commit/fdd5540e0faeaf04622311238acbacf16...