Page tree
Skip to end of metadata
Go to start of metadata

This document is for a previous release of cPanel & WHM. To view our latest documentation, visit our Home page.

For cPanel & WHM 11.46

 

How do I create a domain account on a dedicated server, and connect to the site with external FTP software?

You can connect to any site through external FTP software with the main cPanel username and password. To allow FTP access to only a specific directory, or create multiple users,create FTP account(s) with cPanel's FTP Accounts interface (Home >> Files >> FTP Accounts).

What is my FTP port value?

Your FTP port value is likely port 21. However, it is possible that your web hosting provider may change this port. Contact your web hosting provider for specific ports on your server.

For more information about FTP port values, visit our How to Configure Your Firewall for cPanel & WHM's Services documentation.

My FTP password does not work, or I forgot my FTP password. How can I reset the FTP account password?

To change or reset the FTP account password, navigate to cPanel's FTP Accounts interface (Home >> Files >> FTP Accounts) and click Change Password for the FTP account that you wish to edit.

Why can I log in to Pure-FTPd, but not ProFTPd?

If your server uses Pure-FTPd, use either long-form (for example, user@example.com) or short-form (for example, user) usernames to log in to FTP.

Note:

To use short-form usernames with Pure-FTPd, the account must be on a dedicated IP address. 

However, if your server uses ProFTPd, you must use a short format username (for example, user) if your account is on a dedicated IP address.

How can I turn off anonymous FTP?

Warning:

We strongly recommend that you deny anonymous users the ability to upload files to your FTP server. This setting will prevent malicious software uploads, which can harm your website.

For cPanel users

Note:

You will only see the Anonymous FTP icon if your system administrator has enabled both FTP services and anonymous FTP. The system disables anonymous FTP services on new installations by default.

To disable anonymous FTP, perform the following steps:

  1. Access cPanel's Anonymous FTP interface (Home >> Files >> Anonymous FTP). 
  2. Disable the following options:
    • Allow anonymous access to ftp://ftp.example.com
    • Allow anonymous uploads to ftp://ftp.example.com/incoming

For server administrators in WHM

To disable anonymous FTP for all accounts on your server, perform the following steps:

  1. Navigate to WHM's FTP Server Configuration interface (Home >> Service Configuration >> FTP Server Configuration).
  2. Set the following options to No:
    • Allow Anonymous Logins
    • Allow Anonymous Uploads 
  3. Click Save.

Note:

You do not need to change the setting for Maximum Load for Anonymous Downloads if Allow Anonymous Logins is disabled.

For server administrators on the command line

To disable anonymous FTP for all accounts on your server from the command line, read the How do I make changes to my server's FTP configuration from the command line? section below.

I have more than 2,000 files in a folder. Why do only 1,998 files display in my FTP client?

By default, Pure-FTPd only shows up to 2,000 files in each folder.

To display more than 2,000 files when your server uses Pure-FTPd, perform the following steps:

  1. In the command line, use your preferred text editor to open the pure-ftpd.conf file.
  2. Locate the line that contains the following text:

    LimitRecursion 2000 8
  3. Replace 2000 with the number of files that you wish to view in the folder.

I am a reseller. Is there a way to view my clients' FTP without the password?

There is no plaintext record, even for the root user, to view client passwords. The only copies of passwords on the server are in the password hashes in the /etc/proftpd/ directory.

How do I deny FTP access to a problem FTP account?

To deny FTP access to a problem FTP account, block FTP access for the cPanel account that owns that FTP account.

For more information, read our FTP users file documentation.

How do I make changes to my server's FTP configuration from the command line?

To determine which FTP server your server is configured to use, run the grep ftpserver /var/cpanel/cpanel.config command.

You will receive one of the following two results:

ftpserver=proftpd
ftpserver=pure-ftpd

 

Follow the instructions below that correspond to your FTP server type.

Pure-FTP

To edit the FTP configuration for Pure-FTP, perform the following steps:

  1. Remove the cache file with the rm -f /var/cpanel/conf/pureftpd/main.cache command.
  2. Edit the main configuration file /var/cpanel/conf/pureftpd/main with a text editor.
  3. To change the state of Allow Anonymous Logins, run the appropriate command:
    • To Disallow Anonymous Logins, run the touch /var/cpanel/noanonftp command.
    • To Allow Anonymous Logins, run the rm -f /var/cpanel/noanonftp command.
  4. To apply your changes, you can force an update of FTP with the following command:

    /scripts/setupftpserver pure-ftpd -—force

ProFTP

To edit the FTP configuration for ProFTP, perform the following steps:

  1. Remove the cache file with the rm -f /var/cpanel/conf/proftpd/main.cache command.
  2. Edit the main configuration file /var/cpanel/conf/proftpd/main with a text editor.
  3. To change the state of Allow Anonymous Logins, run the appropriate command:
    • To Disallow Anonymous Logins, run the touch /var/cpanel/noanonftp command.
    • To Allow Anonymous Logins, run the rm -f /var/cpanel/noanonftp command.
  4. To apply your changes, you can force an update of FTP with the following command:

    /scripts/setupftpserver proftpd -—force