Question
How can I deny FTP access to a user, or users?
Answer
cPanel will use a file located at /etc/ftpusers to block FTP access.
- Connect to the server over SSH as the root user.
- Use the touch command to create the file if it does not exist:
touch /etc/ftpusers
- Open the file with your favorite text editor. Place the usernames you wish to block access for each on a separate line and save the file:
user1
user2
user3
The list of users in the file will be denied FTP access.
Additional Information
cPanel Doc: How to Deny FTP Access