Permanently modify the LimitRecursion setting?

Benjamin D.

Well-Known Member
Jan 28, 2016
126
17
18
Canada
cPanel Access Level
Root Administrator
Hi, is there any way to permanently modify the LimitRecursion setting in /etc/pure-ftpd.conf so that WHM updates DON'T revert it? I have it set on: LimitRecursion 20000 8

WHM updates keep resetting it to 10000. It's not 1988 anymore. FTP directories can very well have over 10000 files and it kind of sucks that I have to manually think about reverting this setting every time my WHM updates. When I forget, I have users complaining they can only list 9999 files.

Thanks

Why isn't this setting in this section, see attached screenshot.
 

Attachments

Last edited by a moderator:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,911
2,234
363
Hello @Benjamin D.,

We document how to ensure changes to the Pure-FTPd configuration file are preserved on the link below:

FTP FAQ - Version 74 Documentation - cPanel Documentation

Here's the relevant quote from this document:

To edit the FTP configuration for Pure-FTP, perform the following steps:
  1. Remove the cache file with the rm -f /var/cpanel/conf/pureftpd/main.cache command.
  2. Edit the main configuration file /var/cpanel/conf/pureftpd/main with a text editor.
  3. To change the anonymous FTP settings, run the appropriate command:
    • To disallow anonymous logins, run the touch /var/cpanel/noanonftp command.
    • To allow anonymous logins, run the rm -f /var/cpanel/noanonftp command.
  4. To apply your changes, you can force an update of FTP with the following command:

    /scripts/setupftpserver pure-ftpd --force
I've tested and confirmed this method allows one to properly preserves changes to the LimitRecursion value. I encourage you to submit a feature request if you'd like to see LimitRecursion added to the available options to configure in WHM >> FTP Server Configuration.

Let me know if you have any questions.

Thanks!