Subscribe to the RSS Feed

 

PureFTPD virtual chroot

PureFTPD has a feature called “virtual chroot”, where it will mimic a chroot by its own means, but without using the chroot() system call.

An excerpt from the PureFTPD FAQ:

– The ‘virtual chroot’ implementation. With that feature, users can
follow all symbolic links, even when they don’t point inside the jail. This
is very handy to set up directories shared by multiple users. Binary
packages are compiled with virtual chroot by default.

To enable the virtual chroot feature when you are compiling the server, use
the —with-virtualchroot with ./configure . If you want a restricted chroot,
don’t include —with-virtualchroot.

Please note that the FTP server will never let people create new symbolic
links. Symbolic links have to be already there to be followed. Or if your
users can create symbolic links through Perl or PHP scripts, your hosting
platform is really badly configured. People can install any web file
browser, they don’t need FTP to look at your system files. Recompile PHP
without POSIX functions and run all Perl scripts chrooted.

This feature is turned on by default in the FreeBSD ports.

Jos sent in a comment to the ports maintainer of pureftpd noting the above problem and today they have made this selectable when compiling the package.

Freshports commit message and direct link to CVS.

Posted 2009/11/30 14:51 by alex


Comments

  1. Mar 31, 04:39 PM

    Gardener Says:

    thanks, good article.

  2. May 10, 06:29 AM

    Cartier cell phone strap Says:

    Please note that the FTP server will never let people create new symbolic
    links. Symbolic links have to be already there to be followed. Or if your
    users can create symbolic links through Perl or PHP scripts, your hosting
    platform is really badly configured. People can install any web file

  3. May 11, 03:53 AM

    replica YSL scarf Says:

    This article is very good, very appealing. Affects every reader chord, hoping to share with you the exchange. Thank articles.

  4. May 11, 04:21 AM

    discount OKey sunglasses Says:

    This article is very good, very appealing. Affects every reader chord, hoping to share with you the exchange. Thank articles.

  5. May 17, 11:22 AM

    Piaget usa watches Says:

    This article is really good, very appealing. Hope I can talk to you, thank you for your articles

  6. May 18, 04:09 AM

    discount Police sunglasses Says:

    Articles are moving every reader with heart, and full of appeal. Let us have to admire, thank your article!

  7. May 23, 07:37 AM

    Spain Longines watches Says:

    Thank you! I LOVE this. I made one. I use it all the time. I will be posting a picture of mine and providing a link on my blog.

  8. Mar 10, 09:40 AM

    cheap Lolita coats Says:

    you are seriously number a person admin your running a blog is wonderful i continually examine your webpage i’m positive you is going to be the very best

  9. Nov 23, 08:26 AM

    athletic clothing Says:

    nice post

Leave a Comment

Add your comment. Preview then Submit.


Hidden


Textile Help