> > > chroot /path/to/userhomedir /bin/bash > chroot: cannot change root directory to /home/userdir: Operation not permitted Only root can do a chroot. So best thing to do would be to dig into the code and add a chroot() call just before the setuid ... Frank