LinuxHelps.com

A blog for Linux Lovers.

Posted by sibu on March 10, 2009

How to Disable FTP Users to Access to Out of Home Directory (chroot)

Disable chroot will allow FTP users to break out the chroot to go to directory in different location. The restriction is set by chroot directive where FTP users are locked within chrooted folder, normally their home folder.

To enable chroot cage for FTP users in their home directories, locate the chroot configuration in FTP server configuration file and set the value to “YES”. Some directive name and configuration file name with its location for common FTP server software is listed below.

Pure-FTPd: /etc/pure-ftpd.conf

ChrootEveryone=YES

ProFTPd: /etc/proftpd.conf

DefaultRoot ~

VSFTPd: /etc/vsftpd.conf

chroot_local_user=YES

Add A Comment