I am trying to chroot a user when they login with ssh. So, what I did is added the following line to their .bashrc
file:
chroot /apps/web
When I login with the user though, I am getting:
chroot: cannot change root directory to /apps/web: Operation not permitted
The permissions on /apps/web is root user and group owned. Any ideas?