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.

ProFTP Vhost Template ? setting maxclients default.

Discussion in 'General Discussion' started by BrianLayman, Aug 30, 2013.

  1. BrianLayman

    BrianLayman Member

    Joined:
    Aug 3, 2009
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    1
    I've changed the proftp maxclients settings in /etc/proftp.conf. I would like to change the default used when building this file so that when the file is rebuilt, the customer does not call back as their workflow has been broken. It seems this file is being replaced or rewritten when cpanel updates. The last time proftp.conf was overwritten was Aug 28 00:44 and upcp runs at 00:41.

    Given how cpanel works I was sure there would be a way to define the template for the vhosts used in the config file. And I know if I can't find the template, I could cron an SED replacement, but that seems rather gimmicky.


    Looking in /scripts/rebuildproftpd we see pulls the template via:

    Cpanel::Template::Ftp::getftptemplate( 'stdvhost', 'proftpd', $domain, $ip, $user, $homedir )


    I don't thing the source for Cpanel::Template::Ftp::getftptemplate is visible to me. So based upon that info, can any of you gurus tell me where can I find/create/modify this template and replace the defaults?
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,723
    Likes Received:
    660
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    You could add/modify the value in the following file:

    Code:
    /var/cpanel/conf/proftpd/main
    Then, remove the following file:

    Code:
    /var/cpanel/conf/proftpd/main.cache
    Then, rebuild the ProFTPd configuration file:

    Code:
    /scripts/rebuildproftpd
    Thank you.
     
Loading...

Share This Page