I am developing a package so when users login through ssh they are forwarded to a chroot jail.
The jail directory is created via makejail program on building process.
But when the jail package copy on system it fails to chroot to that directory. getting this message:
chroot: failed to run command `/bin/bash': Permission denied