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. ...

Get Special Edition Using Linux®, Sixth Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.