[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: chroot and OpenSSH

> > > 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 ...


Reply to: