I've been struggling with this ftp login failure problem for
a month and still no clue. Here is the symptom: I login
as a regular user with login password and always get the
following
Connected to host.domain
220 host.domain FTP server (Version wu-2.5.0(1) Tue Sep 21 16:48:12 EDT
1999) ready.
Name (host:me): me
331 Password required for me.
Password:
530 Login incorrect.
Login failed.
ftp> quit
I thought the problem might be because /etc/shadow was missing
in my initial installation of RedHat 6.1 and ftpd (or in.ftpd)
needs to check this file, so I created /etc/shadow using pwconv.
It didn't solve the problem. Then I checked /dev/tty, the mode
is 666, fine. In /var/log/message and secure, it logged
ftpd[_number_]: cmd failed, nothing more than that. So I am
speculating that ftpd somehow failed to get the password
correct for any given user. What else could possibly be wrong?
Thanks.
_______________
P.S.: the /etc/ftpaccess and /etc/ftpusers
# in /etc/ftpaccess
loginfails 2
class local real,guest,anonymous *.domain 0.0.0.0
class remote real,guest,anonymous *
limit local 20 Any /etc/msgs/msg.toomany
limit remote 100 SaSu|Any1800-0600 /etc/msgs/msg.toomany
limit remote 60 Any /etc/msgs/msg.toomany
readme README* login
readme README* cwd=*
message /welcome.msg login
message .message cwd=*
compress yes local remote
tar yes local remote
private yes
passwd-check rfc822 warn
log commands real
log transfers anonymous,real inbound,outbound
shutdown /etc/shutmsg
delete no guest,anonymous # delete permission?
overwrite no guest,anonymous # overwrite permission?
rename no guest,anonymous # rename permission?
chmod no anonymous # chmod permission?
umask no anonymous # umask permission?
upload /home/ftp * no
upload /home/ftp /incoming yes root daemon 0600 dirs
upload /home/ftp /bin no
upload /home/ftp /etc no
alias inc: /incoming
cdpath /incoming
cdpath /pub
cdpath /
path-filter anonymous /etc/pathmsg ^[-A-Za-z0-9_\.]*$ ^\. ^-
path-filter guest /etc/pathmsg ^[-A-Za-z0-9_\.]*$ ^\. ^-
guestgroup ftponly
# in /etc/ftpuser
root
uucp
news