Overview

The /usr/local/cpanel/scripts/setupftpserver script allows you to select your server's FTP server, configure anonymous FTP services, or disable FTP services.

You can select an FTP server with WHM's FTP Server Selection interface (WHM >> Home >> Service Configuration >> FTP Server Selection). You can also configure anonymous FTP with WHM's FTP Server Configuration interface (WHM >> Home >> Service Configuration >> FTP Server Configuration).

Run the script

To run this script on the command line, use the following format:

/usr/local/cpanel/scripts/setupftpserver options ftpserver

Options

Use the following options with this script:

OptionsDescriptionExample
--forceRun this script and do not stop for warnings, even if the script fails.
/usr/local/cpanel/scripts/setupftpserver --force pure-ftpd
--currentDisplay the currently-configured FTP server.
/usr/local/cpanel/scripts/setupftpserver --current
--enable-anonymous

Enable anonymous FTP.

This feature may cause security risks.


/usr/local/cpanel/scripts/setupftpserver --enable-anonymous pure-ftpd

Use the following values for the ftpserver option:

OptionsDescriptionsExample
pure-ftpdUse the pure-ftpd FTP server.
/usr/local/cpanel/scripts/setupftpserver pure-ftpd
proftpUse the proftp FTP server.
/usr/local/cpanel/scripts/setupftpserver pro-ftpd
disabledDisable FTP services.
/usr/local/cpanel/scripts/setupftpserver disabled

Additional documentation