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?