• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 708
  • Last Modified:

RedHat 6.1 FTP server setup how?

I can't get the FTP server working on my RH 6.1 x86 box, which
is connected to my  LAN.  I can telnet, and can access the web
server from elsewhere on the LAN, just not FTP.  What config
have I missed?

Here's what happens when I try to open ftp:

---

[root@localhost /etc]# ftp
ftp> open localhost.localdomain
Connected to localhost.localdomain.
421 Service not available, remote server has closed connection#

---

This is what the inetc.conf file says

---

ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpd -l -a
telnet  stream  tcp     nowait  root    /usr/sbin/tcpd  in.telnetd
#
# Shell, login, exec, comsat and talk are BSD protocols.
---

And here is the passwd file

 
ftp:x:14:50:FTP User:/home/ftp:
nobody:x:99:99:Nobody:/:
xfs:x:100:101:X Font Server:/etc/X11/fs:/bin/false

---

Here is the services entry:

ftp-data        20/tcp
ftp             21/tcp
fsp             21/udp          fspd
ssh             22/tcp                          # SSH Remote Login Protocol
ssh             22/udp                          # SSH Remote Login Protocol
telnet          23/tcp

---

[root@localhost /etc]# cat hosts.allow
#
# hosts.allow   This file describes the names of the hosts which are
#               allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#

[root@localhost /etc]#
[root@localhost /etc]# cat hosts.deny
#
# hosts.deny    This file describes the names of the hosts which are
#               *not* allowed to use the local INET services, as decided
#               by the '/usr/sbin/tcpd' server.
#
# The portmap line is redundant, but it is left to remind you that
# the new secure portmap uses hosts.deny and hosts.allow.  In particular
# you should know that NFS uses portmap!

[root@localhost /etc]# cat hosts
192.168.1.0     Chaika
127.0.0.1       localhost.localdomain   localhost
192.168.1.254   Okina

thanx in advance, experts!
0
talkingdog
Asked:
talkingdog
1 Solution
 
jlevieCommented:
Error 421 is what you usually get when there is not an FTP server available on the remote. Since there doesn't appear to be a any obvious flaws in the config, I have to ask if you sure that an FTP server is installed on the system.

If you installed RH as a KDE or Gnome workstation, you'll need to add the wu-ftp package.
0
 
psimationCommented:
I would agree with jlevie, during installation of RedHat, you have the option to select a FTP service, if you didn't selelct it during install, then you will have to install the rpm now, same goes for samba, http etc.
0
 
talkingdogAuthor Commented:
Thanks that did the trick.  I mistakenly assumed that the workstation install for Linux included an FTP server.  
0

Featured Post

Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now