Visit Our UNIX and Linux User Community


Red Hat 7.2 Linux Server - FTP Problems


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Red Hat 7.2 Linux Server - FTP Problems
# 1  
Old 11-25-2002
Red Hat 7.2 Linux Server - FTP Problems

I have just installed RH7.2 Server and along with apache 1.3 and PHP. I am able to FTP from my linux box to other remote maches, but am unable to FTP to the linux box from other remote machines. The message I get is: A remote host has refused an attempted connect operation. I have done some checking and have noticed that telnet is not running. Not sure if this is the problem. I also check the xinetd.conf file to see if telnet is disabled and it is not. It is also checked to come up when the machine boots, but is not. I used ps -ef | grep telnet and various other combinations to see if it was running. I also do not have an FTP server running and if this is what I need can you point me to one that works well with the version of Linux I have. I can't seem to find one on the CD's that I have, but that does not surprise me as I probably don't know what I am looking for. Any suggestions as to where I should start or what I should be looking for? Thank you.
# 2  
Old 11-25-2002
telnet gives a remote shell to the client. ftp is different. if you did the default redhat install you probably do have ftp running and just dont know it, to enable if first go to /etc/inetd.conf (this may or may not be the right file in redhat, but it probably is) and look for the line that says:

# ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd



now see the hash mark in front? the #, remove that then try to ftp to your box from a remote computer. if that dosnt do it then you dont have ftp running, then you should use red hats packaging system, probably included with your distrobution is wu-ftp and pro-ftpd either one is good, some say one is more secure than the other, but you can research your self online and make that judgment, choose whats best for you. hope that helps.
# 3  
Old 11-26-2002
Hi,
Thank you for your response. In Red Hat 7.2.5 they use xinetd instead of inetd. in the /etc directory there is a file called xinetd.conf that points to a directory /etc/xinetd.d/ to look for which services to run. The conf file looks like this:
#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

includedir /etc/xinetd.d




In this directory are what I would call config files for each one that you want xinetd to run. I copied the telnet file to a file called ftp and modified it to run ftp. This is what the file looks like:
# default: on
# description: The ftp server allows remote machines to log in \
# unencrypted username/password pairs for authentication.
service ftp
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.ftpd
log_on_failure += USERID
}

By the way before I did this I installed wu-ftp. Thank you for your help and I hope this info will help others.
# 4  
Old 11-26-2002
Here is the /etc/xinetd.d/wu-ftpd from my box here at work (also a Redhat 7.2 box):
Code:
service ftp
{
        disable = no
        socket_type             = stream
        wait                    = no
        user                    = root
        server                  = /usr/sbin/in.ftpd
        server_args             = -l -a
        log_on_success          += DURATION
        nice                    = 10
}

It may well have to do with the server_args.
BTW, mine was installed from RPM, so these are defaults for Redhat, and should work.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #564
Difficulty: Medium
The negation operator is a null task operator not a unary operator.
True or False?

10 More Discussions You Might Find Interesting

1. Red Hat

Backup of Red Hat Linux 5.9 Tikanga based server through Acronis 11.5

Hii, We are running a server with Red Hat Linux 5.9 tikanga version. We have scheduled the online image backup of the server through Acronis 11.5, the CPU utilization of the server is increasing upto 100%. and after sometime the server is going down. Can anyone help on the same?? (2 Replies)
Discussion started by: Vivek Kr Porwal
2 Replies

2. Red Hat

Special characters automatically gets returned - Red Hat Enterprise Linux Server release 7.0

Dear experts, We are using Linux OS i.e Red Hat Enterprise Linux Server release 7.0 I log to the server using putty & default shell is Code: -bash4.2$ echo $SHELL /bin/bash special character automatically gets returned in my putty. Code: -bash-4.2$ ~ Also this... (0 Replies)
Discussion started by: dba1981
0 Replies

3. Red Hat

To download mod_ssl for Red Hat Enterprise Linux Server release 5.6 Beta (Tikanga)

Hi, Anyone know how and where to download mod_ssl package into Red Hat Enterprise Linux Server release 5.6 Beta (Tikanga) ? could you also show what's the procedure to apply the mod_ssl into the server and how to apply the digital cert into apache server and so on. Thanks. (1 Reply)
Discussion started by: ckwan
1 Replies

4. UNIX and Linux Applications

Configuration of Linux cluster managment on Red Hat 5.x server

Hi Experts, I have question regarding linux cluster managment on Red Hat 5.x server. When I try to install 'luci' or 'ricci' in one of our linux servers it is giving me below error:- yum install luci Loaded plugins: katello, product-id, rhnplugin, security, subscription-manager Updating... (0 Replies)
Discussion started by: Amey Joshi
0 Replies

5. Red Hat

Setting Up live FTP Server with Static IP in Red-Hat Linux 6

Hi Guys, I want to some guidance from you in setting up the Live FTP server in Redhat Linux 6 with Static IP 120.50.150.50. Now should I set my Static Public IP directly to my Linux machine? If so what whould be my sunbet mask? Is any type of natting required here? if so where would... (2 Replies)
Discussion started by: manalisharmabe
2 Replies

6. Red Hat

HELP - Resource/Performance Monitoring Script - Red Hat Enterprise Linux Server

Hi all, ------------------------- Linux OS Version/Release: ------------------------- Red Hat Enterprise Linux Server release 5.5 (Tikanga) Linux <hostname> 2.6.18-194.8.1.el5 #1 SMP Wed Jun 23 10:52:51 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux I have a server that hosts 30+ Oracle... (1 Reply)
Discussion started by: newbie_01
1 Replies

7. Shell Programming and Scripting

Linux Red Hat - FTP question

Hi Everyone, Based on what I have read so far and what others have posted on this forum, I have come up with the following script to download and upload files from and to a FTP sever: HOST=xyz.com USER=someuser PASSWD=somepwd tmpfile=/tmp/files.$$ indir=/tmp/inbound... (2 Replies)
Discussion started by: maxshop
2 Replies

8. Linux

Red Hat linux(Advance server) problem

we are receiving following error in our application server & server not booted:- "INIT IP ID x ,Respawning too fast; disable for 5 minutes." Please give me solution for above mention problem as early as possible . AKM (3 Replies)
Discussion started by: akm9999
3 Replies

9. Shell Programming and Scripting

Trouble with FTP Linux red hat

Hi everyone, I Just finished installing Red Hat 7.1 server, and I am having a problem with FTP, and Telnet. I can FTP and Telnet to all client stations. But cannot FTP and Telnet to the server. Does any one know what i missed. All client hosts are in the etc/hosts already. (2 Replies)
Discussion started by: Link_02
2 Replies

10. Filesystems, Disks and Memory

Red Hat Linux Boot Problems

Hi. I have an 81 gig hard drive and split it up into 2 partitions. One for linux and the other for windows. I had my windows up and running and it was doing fine. Then i started my linux. I go Red Hat Linux out and installed it on the partition. This all worked out well. However, when i rebooted... (10 Replies)
Discussion started by: vertigo
10 Replies

Featured Tech Videos