Discussion Locked

FTP Server

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I can't get the FTP server on an RHL 6.1 box to accept any login. I downloaded and installed wu-ftpd-2.6.1. Then I copied all of the ftp* configuration files from a working system. No matter what user I try (root or non-root) the result is the same -- "530 Login incorrect."

Hosts.allow/deny, ftpservers, and ftphosts are empty. I renamed ftpusers and ftpgroups to eliminate them. Ftpaccess looks mostly like the example from the wu-ftpd download, modified to block anonymous and guest.

I'm having to learn Linux admin on the fly. The consultant who did the other installation is not readily available.

3 replies

by zbrain75

Read your /var/log/messages and /var/log/secure files to get some more information about why the attempted login may have failed. Be sure your password is really what you think it is and your non-root users really exist and have a home directory in/home. You should not be able to directly login as root since the root password could be compromised.

Your /etc/shells file should have the following permissions:
-rw-r--r--
and be owned by root for user and group.

Be sure shadow password support was compiled into the ftpd daemon since your system should be using shadow passwords.

See the FAQ at:
http://www.landfield.com/wu-ftpd/

For documentation:
http://www.linuxdoc.org/
has many how-tos, and books on Linux.

Also
http://www.ctdp.homestead.com/files/os/linux/index.html has a users guide and xome links.

by larry.dingle

Thanks. Turned out to be shadow password support. /usr/lib/libshadow.a was missing. Took awhile to figure out how to create it. Then tried to rebuild wu-ftpd. Using the build script didn't work -- filed to detect shadow support. The configure scriptdid the trick.

This discussion is closed to new replies.