Solved

Command for starting the FTP server in redhat linux6.0

Posted on 2000-03-02
5
937 Views
Last Modified: 2013-12-15
How can we start , stop ,know the status and restart the FTP server in the redhat linux6.0?
0
Comment
Question by:pallavi_ing
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 

Author Comment

by:pallavi_ing
ID: 2575970
Please give the required command or program in the redhat linux to start the FTP server.
0
 
LVL 2

Expert Comment

by:Reinier
ID: 2576367
in.ftpd and ipop3d are usually not running al the time. Instead they are started on demand by inetd. Inetd is usually started at boot via one of the symlinks "/etc/rc.d/rc[3-5].d/S50inet"
Look through the config file /etc/inetd.conf and you will see many entries, among them is one for ftpd and another for pop-3.

While you are in /etc/inetd.conf please comment out all services that you don't need. Commenting them out (with a #) will disable the service. It will make your system a lot safer if you only leave uncommented those services that you really need.


 
0
 

Author Comment

by:pallavi_ing
ID: 2578893
Hi,
   Your answer is not satisying me.Even tough they are the services in the Linux which are started by default there must be a command to stop and restart the service like the Apache,sendmail servers etc.For starting Apache server we will have the command /usr/local/apache/bin/httpd start

In the similar way I want the command for the FTP & POP3 servers in the redhat linux operating system
0
 
LVL 2

Expert Comment

by:Reinier
ID: 2580114
Did you actually understand what I wrote? I said in.ftpd is NOT started by default, not under linux and not under any other UNIX variety nowadays. They are started automatically by inetd the moment a request for it comes in on port tcp/21. The deamon is stopped as soon as the remote user logs out again. In this way inetd saves you memory since you won't have many deamons running while doing nothing.

If you insist on running it by hand simply stop inetd with a "/etc/rc.d/init.d/inet stop" and start in.ftpd with "/usr/sbin/tcpd in.ftpd -a -l". There are no start/stop scripts like apachectl or those in /etc/rc.d/init.d/ for in.ftpd.
0
 

Accepted Solution

by:
avery1 earned 100 total points
ID: 2589430

Like Reinier said, the ftp daemon only starts "running" when a user connects to port 21 on the server.  So as long as you have a line like:

ftp     stream  tcp     nowait  root    /usr/sbin/tcpd  in.ftpd -l -a

in your inetd.conf, and

ftp             21/tcp

in /etc/services

you are setup to allow users to ftp in to your machine.  

The /usr/sbin/tcpd is a "wrapper" program that can be used to allow/deny access to the ftp service. See man tcpd for more info on this.

The simplest way to check the stats on your ftp connections is to do a
ftpwho.  you can also do a 'netstat -a | grep ftp' and see who is logged on.

-Avery
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Fine Tune your automatic Updates for Ubuntu / Debian
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question