Troubleshooting
I tried to connect to ftp as root, but I keep getting 530 Login incorrect. Login Failed. I know I used the correct password.
By default, root is denied ftp access. This is configured in PAM. The /etc/pam.d/ftp file installed by most Linux distributions contains an auth line listing pam_listfile.so pointing to /etc/ftpusers. The sense=deny means that any user listed in this file will be denied ftp access. The root user, as well as all system accounts, are listed in the /etc/ftpuser file. You have two choices: Comment out the auth line in /etc/pam.d/ftp, or comment out the use root in /etc/ftpusers (just put a # as the first character in the line.)However, enabling root access to FTP is a very bad idea from a security standpoint. ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access