Article ID: 6871, created on Nov 4, 2009, last review on Apr 25, 2014

  • Applies to:
  • H-Sphere

Resolution

Usually when a user dedicated ftp does not work and produces the "Login failed" error, it means that the /etc/pam.d/ftp fileis not configured properly. You need to change the entry for this file to:
#%PAM-1.0
auth     required  /lib/security/pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed
auth     required  /lib/security/pam_pwdb.so shadow nullok
account  required  /lib/security/pam_pwdb.so
session  required  /lib/security/pam_pwdb.so
FreeBSD does not support PAM session directives. If you remove the following line from the FreeBSD section of README.PAM, PAM should work properly under recent versions of FreeBSD:
ftp session required     pam_unix.so     try_first_pass

f213b9fa8759d57bee5d547445806fe7 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF