Information
This change adds the root user to the /etc/ftpusers file, which disables ftp for root.
Rationale:
This change ensures that direct root ftp access is disabled. As detailed previously, ftp as a service should be disabled. If the service has to be enabled then this change must be implemented to ensure that remote root file transfer access is not enabled.
Solution
Add root to the /etc/ftpusers file:
echo 'root' >> /etc/ftpusers
Default Value:
N/A