Hello! I am using Hestia to provide Laravel hosting for a community.
In order to set up Laravel, they need to be able to run php and composer commands. Both are correctly installed and can be executed (php -v, composer -v) from a non-jailed user.
However, I’m getting some odd errors trying to execute the commands within jailbash.
I went into /usr/bin and the only file I saw was b2.
I’m guessing the jail is being overly strict somehow and preventing users from doing much of anything (although the fact the symptom is a buffer overflow is bizarre to me). I was under the impression it was supposed to create a copy of the binaries in /usr/, but I guess not? Jails are not something I have much experience with. How would I go about allowing jailed users to use php and composer on the command line?
Thanks for any help in advance!
edit: Just realized someone asked almost this exact same question, lol. Still, very confused why it’d result in a buffer overflow!
I’m here months later because I’m still having this issue.
I’ve been doing some digging and I’m wondering if this is related to the fact I’m using Ubuntu? I’m not at all familiar with jailkit, GNU Rush, etc, but I’m seeing things that are suggesting it only works for Debian based distros.
Is this a correct assessment? Could it be possible to write up a custom jailing script so I can stay on Ubuntu?
Thank you so SO much, this completely solved my issue!!
For any other future desperate searchers, I wanted composer installed globally (there will be no need for different versions of composer in my use case), so I simply adjusted two lines as follows: