FTP server says: "421 service not available, remote server has closed connection."
This Error Reference applies to:
All
This Error Reference is intended for:
Any audience.
FTP servers in current distributions often authorize users with the Pluggable Authentication Modules library, in which case there should be an authorization file /etc/pam.d/ftp. A generic authorization file looks like this. (The line break on the first "auth" line is for readability. The entry is actually a single, long line).
#%PAM-1.0 |
Also, make sure the /etc/ftpusers file, or whatever users file is named in the first "auth" line, is configured correctly.
Btw, the sample ftp file above is actually the ftpd/ftp.pam.sample file from the ftpd-BSD-0.3.1.tar.gz package. Many thanks to David A. Madore for this much needed port.

