Chroot FTP users

Discussion in 'Server Operation' started by olli, Apr 21, 2005.

  1. olli

    olli New Member

    I'd like to chroot my FTP users to their home directory so that they are not able to browse the whole server. How can I do it? I'm using proftpd.

  2. falko

    falko Super Moderator Howtoforge Staff Moderator HowtoForge Supporter ISPConfig Developer

    Add the line

    DefaultRoot ~
    to /etc/proftpd.conf and restart proftpd:

    /etc/init.d/proftpd restart
  3. olli

    olli New Member

    Wow, just a single line.
    I wonder why this isn't on by default... :( I think most admins want to chroot their FTP users...

  4. leno

    leno New Member

    I wonder why this isn't on by default...
    Yes, that would make sense.

Share This Page