The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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:
    6
    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:
    18
    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?
     
  3. Annette

    Annette Well-Known Member
    PartnerNOC

    Joined:
    Aug 12, 2001
    Messages:
    445
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  4. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    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:
    16
    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:
    1
    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