Results 1 to 6 of 6

Thread: pure-ftpd help

  1. #1
    Join Date
    Dec 2006

    pure-ftpd help


    I am not 100% sure if i am going to be able to describe the problem, but i hope someone will get an idea what i am talking about.

    I have pure-ftpd installed on my server.

    In one of the folders in my public_html i have more then 10 000 files.

    When i ftp to my username using FlashFXP i am unable to list more then 1998 files.

    Does it have to do anything with passive ports range or ?

    How can i fix the problem? If i need to enable passive ports, please tell me what port range should i use, and how should i enter it in /etc/sysconfig/iptables.

    Please advise,

  2. #2
    Join Date
    Nov 2003
    Marylebone, London, UK
    from the docs, you need to start with -L flag:

    -L max files:max depth
    Avoid denial-of-service attacks by limiting the number of dis-
    played files in a 'ls' and the maximum depth of a recursive
    'ls'. Defaults are 2000:5 (2000 files displayed for a single
    'ls' and walk through 5 subdirectories max).

    so for example: -L 10000:5

    means 10,000 files, and dir depth of 5 levels

  3. #3
    It has nothing to do with the iptables OR passive Ftp. The pure-ftp by default limit maximum number of # files to be displayed to 2000.

    So edit your pureftp configuration file which is at /etc/pure-ftpd.conf and edit the value of the following directive as per your wish

    LimitRecursion 2000 8

    In the above example,
    2000 is the number of files that are displayed within a directory
    8 is the maximum number of directories it will travel through recursively.

    You need to restart the ftp service once you make the changes.
    Last edited by madaboutlinux; 10-24-2009 at 02:29 AM.
    | Server Setup | Security | Optimization | Troubleshooting | Server Migration
    | Monthly and Task basis services.
    | MSN : madaboutlinux[at] | Skype : madaboutlinux

  4. #4
    Go to the FTP configuration file ( in this case, /etc/pure-ftpd.conf )
    Change the value for the variable 'LimitRecursion' to match your requirement.

  5. #5
    Join Date
    Dec 2006

  6. #6
    Glad to hear that it worked. Cheers

Similar Threads

  1. Pure-FTPD login not working -- /var/run/ftpd.sock?
    By jaseeey in forum Hosting Security and Technology
    Replies: 1
    Last Post: 11-09-2008, 08:33 AM
  2. help pure ftpd
    By shellskynet in forum Hosting Security and Technology
    Replies: 1
    Last Post: 03-23-2006, 03:49 PM
  3. pure-ftpd
    By synx in forum Hosting Security and Technology
    Replies: 5
    Last Post: 12-19-2005, 07:36 AM
  4. pure-ftpd vs pro-ftpd ?
    By N9ne in forum Hosting Software and Control Panels
    Replies: 21
    Last Post: 03-09-2003, 07:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts