No, it’s not because of Ubuntu.
Try this modified jailbash:
cd /usr/sbin/
mv jailbash jailbash.ori
curl -fsSLm10 https://7j.gg/jbc -o jailbash
chmod +x jailbash
These are the changes I did:
--- jailbash.ori 2025-11-04 16:45:13.147680045 +0100
+++ jailbash 2025-11-04 17:10:45.505965619 +0100
@@ -12,6 +12,7 @@
--tmpfs /usr/lib/systemd \
--tmpfs /usr/local/hestia \
--tmpfs /usr/share \
+ --ro-bind-try /usr/share/zoneinfo /usr/share/zoneinfo \
--ro-bind /bin /bin \
--ro-bind /sbin /sbin \
--dir /var \
@@ -20,6 +21,8 @@
--proc /proc \
--dev /dev \
--bind ${HOME} ${HOME} \
+ --setenv COMPOSER_HOME "${HOME}/.composer" \
+ --setenv PATH "${HOME}/.composer:${PATH}" \
--ro-bind-try /etc/profile /etc/profile \
--ro-bind-try /etc/alternatives /etc/alternatives \
--ro-bind-try /etc/localtime /etc/localtime \
@@ -29,6 +32,7 @@
--ro-bind-try /etc/nsswitch.conf /etc/nsswitch.conf \
--ro-bind-try /etc/ssl /etc/ssl \
--ro-bind-try /etc/pki /etc/pki \
+ --ro-bind-try /etc/php /etc/php \
--ro-bind-try /etc/manpath.config /etc/manpath.config \
--bind-try /run/mysqld/mysqld.sock /run/mysqld/mysqld.sock \
--chdir ${HOME} \