Jailkit can't execute composer in /usr/local/bin

I am running Centos 7, Webmin/Virtualmin with Jailkit installed.
Jailkit works well to jail users to their home directories.

I have installed Composer globally (/usr/local/bin) and can run it with user1 who is not jailed.

However, when i try to switch to jailed user2 I have problems:

[root@host ~]# su user2
bash: /usr/bin/id: No such file or directory
[user2@host ~]$ composer
bash: composer: command not found

Any suggestions?

hi gscerb, I would try to ask on irc - perhaps fastest and best way to get more info on that issue, did you try ask someone in #composer or #ssh or #centos channels?