Child pages
  • How to Deny FTP Access

Versions Compared

Key

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

Include Page
LIB:_Version
LIB:_Version

Table of Contents
maxLevel3
minLevel2
stylenone

Overview

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

Warning
titleImportant:
  • 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:

Code Block
languagetext
linenumberstrue
user1
user2
user3 


Note
titleNotes:
  • 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

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"