Solved

Command for starting the FTP server in redhat linux6.0

Posted on 2000-03-02
5
943 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

Are You Using the Best Web Development Editor?

The worlds of web hosting and web development are constantly evolving. Every year we see design trends change, coding standards adapt and new frameworks/CMS created. With such a quick pace of change it’s easy to get lost trying to keep up.

See if your editor made the list.

Question has a verified solution.

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

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

623 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