Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 965
  • Last Modified:

Command for starting the FTP server in redhat linux6.0

How can we start , stop ,know the status and restart the FTP server in the redhat linux6.0?
0
pallavi_ing
Asked:
pallavi_ing
  • 2
  • 2
1 Solution
 
pallavi_ingAuthor Commented:
Please give the required command or program in the redhat linux to start the FTP server.
0
 
ReinierCommented:
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
 
pallavi_ingAuthor Commented:
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
 
ReinierCommented:
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
 
avery1Commented:

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!

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