Tag Archives: File Transfer Protocol

Disabling FTP access for a particular cPanel account when using pure-ftpd?

If you want to disable ftp for a particular account, there is no way you can do it through whm or cpanel.

If you are using pure-ftp, you can see that there is a section in the binary file “/usr/sbin/pureauth” which includes the solution.

—————-
# disallow accounts in ftpusers
if ( any( sub { lc($acctowner) eq lc($_) }, @ftpusers ) ) {
failed_auth();
—————

So you can specify the user-name of the account which you want to disable ftp in /etc/ftpusers (one username per line), and restart the pure-ftpd service.

Advertisements
Tagged , , ,