Child pages
  • The setupftpserver script

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Table of Contents
stylenone

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.

Note
titleNote:

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:

Code Block
languagebash
/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.

Warning
titleWarning:

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

Localtab Group


Localtab
activetrue
titleSuggested documentation

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel = "ftp" and label = "whm" and space = currentSpace()


Localtab
titleFor cPanel users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel = "ftp" and label = "cpanel" and space = currentSpace()


Localtab
titleFor WHM users

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel = "ftp" and label = "whm" and space in (currentSpace(),"CKB")


Localtab
titleFor developers

Content by Label
showLabelsfalse
max5
showSpacefalse
cqllabel = "ftp" and space = "DD"