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

  • Applies to:
  • H-Sphere


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:
auth     required  /lib/security/ item=user sense=deny file=/etc/ftpusers onerr=succeed
auth     required  /lib/security/ shadow nullok
account  required  /lib/security/
session  required  /lib/security/
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     try_first_pass

f213b9fa8759d57bee5d547445806fe7 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF