How to disable cpanel login details for the ftp access ?
OR
Disable the default cpanel login details for ftp access ?
Or
Disable the ftp access for cpanle users ?
Ans :
If the default cpanel login is enabled for the ftp access then hacker can easily hack the ftp account and upload the script. So for the security reason to disable the ftp access for the cpanel users means the “domain.com” is the domain and “domain” is the cpanel user name then you can not access the ftp account by using the user “domain”.
Open the file
root@server [] vi /usr/local/cpanel/bin/ftpupdate
Go to to the line number 189 or 211 and comment on it. If your cPanel version it old then you can get the following code at line number 189 and if you cPanel version is upgraded then you can get on line number 211.
# print FTPASS join( ‘:’, $system_user, $entry->[1], $entry->[2], $entry->[3], $entry->[6], $entry->[7], $entry->[8] ) . “\n”;
$vhosts->{$system_user} = join( ‘:’, $system_user, $entry->[1], $entry->[2], $entry->[3], $entry->[6], $entry->[7], $entry->[8] ) . “\n”;
Then run following command
root@server [] /usr/local/cpanel/bin/ftpupdate
Done
Its an Amazing Post,believe me it works I am 100% sure.
Splendid Jod!! Keep it up!!
Hello Vineeth,
Thanks for comments