SFTP chrooted
Hi
I have create chrooted sftp. The user john has chrooted directory /chroot/home/john and in /etc/passwd his home directory is only /sftp so that when he sftp to the server it takes him directly to /chroot/home/john/sftp directory where he can execute all the user command which he would not have been able to execute in /chroot/home/john. What I want to achieve is even when john execute any command with / in front I want the directory to be /chroot/home/john/sftp not /chroot/home/john. Example executing mkdir /test I want the directory to be created inside /chroot/home/john/sftp/ it should not try to create inside /chroot/home/john which is not possible because of chrooted home directory. Thank you for any new idea you have in solving this problem.
Last edited by ratotopi; 09-30-2014 at 01:31 PM.
|