Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PureFTP - How to increase file limits list (2000 entries)?

Discussion in 'General Discussion' started by minotauro, Apr 9, 2004.

  1. minotauro

    minotauro Well-Known Member

    Joined:
    Jan 19, 2004
    Messages:
    89
    Likes Received:
    0
    Trophy Points:
    156
    Hello,

    How to increase file limits list (2000 entries)? I edit /etc/pure-ftpd.conf and change line 164 to:

    # 'ls' recursion limits. The first argument is the maximum number of
    # files to be displayed. The second one is the max subdirectories depth

    LimitRecursion 5000 15

    But when i list the directory, continue show this error:

    226-Options: -l
    226 Output truncated to 2000 matches
    ftp>

    Any idea?

    Regards,
    Minotauro.
     
  2. Marty

    Marty Well-Known Member

    Joined:
    Oct 10, 2001
    Messages:
    630
    Likes Received:
    1
    Trophy Points:
    318
    This is an old thread, but I have this same problem. Does anybody know how to change the recursion limit in pureftp so that more than 2000 files can be listed?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    316
    Edit /etc/sysconfig/pure-ftpd

    Add a line as follows:

    --limitrecursion=xxxxx:y

    where xxxxx is the number of files you would like to permit in a listing and y is the directory depth you wish to permit. After modifying the file, chattr +i to keep cPanel updates from overwriting your changes. Restart FTP, and you'll the extended listings.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    166
    I know this is prety old, however, I had this working without problem recently, but I must have forgot to chattr +i to the file becuase when I did an update it stopped working. And I went to the /etc/sysconfig directory and the pure-ftpd file was gone??? Now what do I do?
     
  5. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    166
    nevermind. Found this line in the pure-ftpd.conf

    LimitRecursion 2000 8

    just had to change that one.
     
  6. tmunk

    tmunk Member

    Joined:
    Apr 4, 2004
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    151
    Location:
    Arizona
    note for BSD servers

    I just ran into this problem when switching from ProFTPD to PureFTPD, because of the Cpanel security advisory. Immediately after the changeover, I was getting calls from users who were unable to view more than 2000 files in a directory (a problem for some of my customers who have product photos numbering in the tens of thousands).

    This fix works perfectly, but it should be noted that the pure-ftpd.conf file lives in /usr/local/etc on BSD systems :)
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice