ProFTP Vhost Template ? setting maxclients default.

BrianLayman

Member
Aug 3, 2009
10
0
51
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?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,202
363
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.