I have implemented sftp(through ssh) and blocked pureftp in my cpanel linux vps for security resons . Now i am facing issue with sftp. The issue is that a user when logins into server through sftp,he gets permission to traverse to / directory . So the user can now able to view logs in /var/logs and also can view files in /proc direcory . So i want to chroot the user for their sftp login . I tried rssh but i got the following error :
Feb 1 21:24:59 host rssh: chroot cmd line: /usr/libexec/rssh_chroot_helper 2 "/usr/libexec/openssh/sftp-server"
Please tell how can i impliment chroot sftp or tell the way i block the access of user to / directory in sftp.
Thanks in advance....