Solved

Command for starting the FTP server in redhat linux6.0

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
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.

743 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now