We have a new documentation site for cPanel & WHM! You can find our new documentation site at docs.cpanel.net.

We will continue to maintain our API documentation on this server.

Child pages
  • How to Deny FTP Access
For cPanel & WHM version 74

Skip to end of metadata
Go to start of metadata

Overview

If the /etc/ftpusers file exists on your server, cPanel & WHM denies FTP access to all of the cPanel users in that file.

Important:

  • This security tweak modifies the Apache configuration file only if the PHP handler that you select utilizes DSO. This includes the mod_ruid2 file.
  • If the /etc/ftpusers file does not exist on your server, you must create it before you can use it to block FTP access. 

The /etc/ftpusers file

The /etc/ftpusers file lists of all of the cPanel users for whom to deny FTP access. To deny FTP access to a user, add the username to the file, with one username per line.

For example, an /etc/ftpusers file that blocks access to the user1user2, and user3 users would appear similar to the following example:

user1
user2
user3 

Notes:

  • Do not include additional information in the usernames (for example, the domain name).
  • To deny FTP access to an FTP user, block the cPanel account that owns that FTP user.

Additional documentation

There is no content with the specified labels

There is no content with the specified labels

There is no content with the specified labels