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?
ssh://user@myserver.mydomain.com/first-appinstead ofssh://user@myserver.mydomain.com/apps/web/first-app– Justin Sep 7 '11 at 20:49cd /apps/webin the .bashrc file it works, but git doesn't. I thought git connects with ssh, so seems like it would have to execute the .bashrc file. – Justin Sep 7 '11 at 21:02