How to Allow FTP Users to Access to Out of Home Directory (chroot) Files and Folders

FTP server service on a host that comes with advanced web hosting package such as VPS (Virtual Private Server), VDS (Virtual Dedicated Server), hybrid server, or dedicated server, regardless of whether it’s powered by proftpd, vsftpd, or pure-ftpd, etc., usually been set up and configured by default to restrict and jail the FTP users to have only limited access to files and folders located within their own home directory. The restriction is set by chroot directive where FTP users are locked within chrooted folder, normally their home folder.

If FTP users need to access or change to another folders out of chrooted home directory, they have to be allowed to access other directories and files by disabling chroot control. Disable chroot will allow FTP users to break out the chroot to go to directory in different location.

To disable chroot cage for FTP users in their home directories, locate the chroot configuration in FTP server configuration file and set the value to “NO”. 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=NO

ProFTPd: /etc/proftpd.conf

DefaultRoot ~ (delete this line)

VSFTPd: /etc/vsftpd.conf

chroot_local_user=NO

4 Responses to “How to Allow FTP Users to Access to Out of Home Directory (chroot) Files and Folders”

  1. xer
    April 14th, 2009 17:28
    4

    Well
    I’m looking for an how to, for create users in ProFTPd without SSH access on linux, i mean, i want create JUST FTP users without any login name in /etc/passwd

  2. Yorick
    April 7th, 2008 18:37
    3

    Hi i tried that chroot_local_user=NO

    im using vsftpd on ubuntu 7.10 desktop. I changed the conf file like before then restarted the server and from another desktop logged in as a localuser. when i typed ls -l it still only shows that users home directory..Please help im so new to linux

  3. Sean wayne
    January 20th, 2008 00:43
    2

    http://www.vinno.net/linux/server/chroot-mount-trick
    Ops didnt work. Here it is again: http://www.vinno.net/linux/server/chroot-mount-trick

  4. Sean wayne
    January 20th, 2008 00:42
    1

    You know that you can, mount –bind a directory so users are chroot for security but still allow them to access some more directorys outside their chroot.

    Heres the link to it.

Leave a Reply

You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Subscribe to comments feature has been disabled. To receive notification of latest comments posted, subscribe to My Digital Life Comments RSS feed or register to receive new comments in daily email digest.

New Articles

Incoming Search Terms for the Article

pure ftp chroot - vsftpd symlink - pure-ftp chroot - proftpd follow symlinks - ftp users - pure-ftpd symlink - pure-ftpd chroot symlinks - vsftpd lock folder with SSH - pure-ftpd chroot - vsftpd chroot symlink - solaris ftp configuration - ftp home directory - change directory outside of home directory windows 2003 ftp server - chroot users+pure-ftpd - pure-ftpd symlinks - pureftpd symlink - ftp access restriction to subfolders - how to restrict ftp access - pureftp jail user - pureftp chroot jail - pure ftpd chroot - ubuntu ftp and www folder - how to limit a user to home folder ? suse - vsftpd chroot disable - suse pure-ftpd virtual_chroot - debian allow ftp user access - ftp in ubuntu to hebrew folders - proftpd jail symlink - vsftpd symlink chroot proftpd - how to chroot login ftp - proftp allow user directory - proftpd home dir - pure-ftpd default directory - vsftpd symlink chroot - chroot pureftp - howto restrict user to go upper folder in linux - proftpd followsymlinks - pureftpd follow symlinks - pure-ftp folder - pureftpd symlinks - pureftp bind folders - restrict folders proftpd - ftp home directory for user - how to allow access to files - how to allow ftp access - limit user solaris ftp home directory - linux setup ftp account limit to folder pure-ftpd - location Pure-FTP config - proftpd display/follow the symlinks - proftpd ftpchroot -