Solved

Command for starting the FTP server in redhat linux6.0

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SonarQube on Linux vs Windows 3 53
Linux FTP Error 5 34
list of sudo access for date range 5 29
python - find anything after $ question. 9 18
rdate is a Linux command and the network time protocol for immediate date and time setup from another machine. The clocks are synchronized by entering rdate with the -s switch (command without switch just checks the time but does not set anything). …
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

820 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