HostOnNet Blog

FTP Limiting 2000 file listing on Cpanel server

Looking for Linux Server Admin or WordPress Expert? We can help.

On Cpanel server with Pure-FTPd, FTP is showing only 2000 files in a folder. Folder contains about 4000 files. On FTP Client, getting following error

150 Accepted data connection
226-Options: -a -l
226 Output truncated to 2000 matches

To correct this problem, edit pure-ftpd configuration file at /etc/pure-ftpd.conf and modify value of LimitRecursion, by default, it is set to 2000

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

LimitRecursion 20000 8

Now upto 20000 files will listed by FTP Client. To get pure-ftpd, using this new value, you have to restart pure-ftpd

root@host [/etc/init.d]# service pure-ftpd stop
Stopping pure-authd:

root@host [/etc/init.d]# service pure-ftpd start
Starting [ OK ]
Starting pure-authd:
root@host [/etc/init.d]#

Posted in Windows. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.