Question
How can I make changes to my FTP configuration without cPanel overwriting my changes?
Answer
You will need to create a local configuration file to preserve your changes. If you write to the default configuration the changes will be overwritten.
To determine which FTP server your server uses, log in to your server via SSH as the root user and run the following command:
grep ftpserver /var/cpanel/cpanel.config
You will see one of the following
ftpserver=proftpd
or
ftpserver=pure-ftpd
If you are using Pure-FTP, you will need to create the following file and then store your FTP configuration changes there.
/var/cpanel/conf/pureftpd/local
After saving your changes run the following to update the FTP configuration.
/scripts/setupftpserver pure-ftpd --force
If you are using Pro-FTP, you will need to create the following file and then store your FTP configuration changes there.
/var/cpanel/conf/proftpd/local
After saving your changes run the following to update the FTP configuration.
/scripts/setupftpserver proftpd --force
For more information please see our documentation:
https://docs.cpanel.net/knowledge-base/ftp/how-to-edit-ftp-server-configuration-from-the-command-line/