Webhosting Blog

Increasing the number of filelistings in pureftpd


By default in cPanel the limits number of files and sub directory trees is 2,000 files till 8 levels.
If you have a large amount of files to be listed (more than 2000) you need to make some changes in the pure-ftpd’s configuration file.
Following are the steps for the same.

1) Login to the server as root.

2) Open the configuration file for pure-ftpd.

[root@server~]# vi /etc/pure-ftpd.conf

3) Locate the line which says :

LimitRecursion 2000 8

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

4) Edit the mentioned line to the limits as needed. For Eg I would like to list 3000 files to a subdirectory depth of 6 the setting will be as follows:

LimitRecursion 3000 6

5) Now just restart the pure-ftpd service on the server.

[root@server~]# /etc/init.d/pure-ftpd restart

Now you can view the difference in listing.

Advertisements

2 responses

  1. nice, love this blog, how do I subscribe

    December 9, 2010 at 11:12 pm

    • Hi Narnia,
      Thank you for your interest in the blog! Please place your email in the Email Subscription section in order to Subscribe to the blog.

      December 10, 2010 at 5:47 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s