Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 06-26-2003, 03:39 PM   #1
Registered: May 2003
Posts: 37

Rep: Reputation: 15
Question ftp server - how do I set it up?

I did rpm -qa | grep ftp and got:

Do I have a ftp server? Or is it a ftp daemon that I should have? How do I start it/stop it?
Old 06-26-2003, 03:57 PM   #2
Registered: Jun 2003
Distribution: Slack9, Red Hat 8.1
Posts: 117

Rep: Reputation: 15
yes, you have proftpd running. I just spent days trying to figure all this out and basically, you have a daemon which is the proftp daemon. How this runs is a slightly more complicated issue but it's not hard. Whenever the daemon is running and assuming you do not have a firewall blocking traffic (need to check cause red hat comes with built in firewall rules) (iptables -L) then you have a ftp server running. The way you run this daemon is probably in your inetd.conf file located in /etc/ which means it will be ran from your inet daemon at startup. Then you will also have a proftpd.conf file which specifies all your option and bells and whistles you want your ftp server to do. I personally got rid of the proftpd and installed vsftpd which seems like a better ftp server. However, i am running slack9 so this took some more work because i had to do it from source. If you have red hat then it is easy cause you can use the rpm. Anyway, that is all there is to ftp servers. As for how to stop this daemon you can just do a ps aux | grep ftp and get the PID (first column i think) and then do a kill -a 'PID'
Old 06-26-2003, 04:29 PM   #3
Registered: May 2003
Posts: 37

Original Poster
Rep: Reputation: 15
Okay, I have proftpd installed. Good.
Now, I edited /etc/xinetd.d/proftpd-xinetd to look like this:

service ftp
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/in.ftpd
log_on_success += DURATION USERID
log_on_failure += USERID
nice = 10

I then restarted xinetd:
/etc/rc.d/init.d/xinetd restart

I then tried to ftp localhost:
Connected to localhost.
421 Service not available, remote server has closed connection

So, I'm at a loss. What's wrong?
Old 06-28-2003, 07:22 PM   #4
Registered: Jun 2003
Location: Netherlands
Distribution: Red Hat Linux 9, FreeBSD 4.8, Knoppix 3.2
Posts: 182

Rep: Reputation: 30
What does "tail /var/log/messages" say after the xinetd restart?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
set up ftp server shane200_ SUSE / openSUSE 3 07-02-2005 12:00 AM
How do I set my FTP server to accept passive FTP? imsam Linux - Newbie 3 12-12-2004 06:22 AM
How to set up an ftp server on slack 10 jml75 Slackware 6 08-11-2004 09:21 PM
I want to set up a ftp server. brynjarh Linux - Newbie 5 06-26-2004 12:45 PM
How to set up ftp server scialom Linux - Software 9 07-24-2003 05:04 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:40 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration