LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-20-2003, 07:12 PM   #1
dsgdevil
Member
 
Registered: Jan 2003
Distribution: RedHat Linux 9
Posts: 126

Rep: Reputation: 15
FTP problem


Hi everyone, I've just upgraded my computer from Red Hat 8 to 9 and now I'm trying to install the ProFTPD server. The installation went fine. However, when I try to start it with:

# service proftpd start

it gives me this reply:

Starting proftpd: [ OK ]

The reply says the server started but when i try to access it, it coudnt connect.When I restart the server, the message says:

Shutting down proftpd: [FAILED]
Starting proftpd: [ OK ]

It seems that the server never started, but the message said it did. I then tried the vsftpd but the same thing happens. Is there anything I'm doing wrong? What can I do to get it the server to work?
 
Old 12-23-2003, 09:52 AM   #2
arooze
LQ Newbie
 
Registered: Dec 2003
Location: Den Haag, The Netherlands
Distribution: RedHat AS 2.1
Posts: 16

Rep: Reputation: 0
This is how I managed to get ProFTP to work. I installed it from source not with an RPM so there could be some differences.
After the installation is done edit the file /usr/local/etc/proftpd.conf and modify the following lines:
ServerType inetd

# Set the user and group under which the server will run
Group nobody

After that edit the file /etc/xinetd.conf and add the following (it's a basic installation but it works for me for the moment):
service ftp
{
flags = REUSE
socket_type = stream
instances = 50
wait = no
user = root
server = /usr/local/sbin/proftpd
bind = <ENTER THE HOST'S IP ADDRESS HERE>
log_on_success = HOST PID
log_on_failure = HOST RECORD
}


After that you can reboot your server and the deamon will start
 
Old 01-27-2004, 03:23 PM   #3
zepplin611
Member
 
Registered: Jan 2004
Distribution: AIX 4.3 RH 7,8,9 / Fedora C1/
Posts: 187

Rep: Reputation: 30
arooze,

I have a question about these three lines:

bind = <ENTER THE HOST'S IP ADDRESS HERE>
log_on_success = HOST PID
log_on_failure = HOST RECORD


did you leave "bind" line in?
what did you put in for "HOST PID" ?
what did you put in for "HOST RECORD?

I am configuring proftpd 1.2.9 on RH 9.0 and I am getting an error:
421 Service not available, remote server has closed connection <---- when trying to ftp in to the machine, from a remote machine.

when trying to connect...could the three lines above (with the correct comments in them) help to remove my error?

thanks,

zepplin611
 
Old 01-28-2004, 03:48 AM   #4
arooze
LQ Newbie
 
Registered: Dec 2003
Location: Den Haag, The Netherlands
Distribution: RedHat AS 2.1
Posts: 16

Rep: Reputation: 0
As far as I know you need the 'bind' line with your hosts ip-address.
The lines:
log_on_succes = HOST PID
log_on_failure = HOST RECORD
should be litterary in the xinetd.conf
This is how my /etc/xinetd.conf looks like, the only thing you should do is change the ip-address:
<cut here>=============================================
#
# Simple configuration file for xinetd
#
# Some defaults, and include /etc/xinetd.d/

defaults
{
instances = 60
log_type = SYSLOG authpriv
log_on_success = HOST PID
log_on_failure = HOST
cps = 25 30
}

service ftp
{
flags = REUSE
socket_type = stream
instances = 50
wait = no
user = root
server = /usr/local/sbin/proftpd
bind = 100.100.100.100
log_on_success = HOST PID
log_on_failure = HOST RECORD
}

includedir /etc/xinetd.d

<cut here>=============================================

When you get the 'service nt available' message the proftp deamon is not running.

Good luck!

Greez, Arjan
 
Old 01-28-2004, 07:23 AM   #5
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
Did you try scanning the local machine with NMAP?

nmap -sT localhost

perhaps it is binding to the wrong port. Did you make sure your server was configured correctly? Doublecheck that it isn't running.

ps -aux | grep *proftp*

====================

netstat -a

will show listening ports on your computer. Maybe one of them will map to the ftp server.

Did you doublecheck the configuration of your server? I didn't notice you mentioning anything about looking at or even editing the configuration file. That would be the first place I would look before ever trying to start it.
 
  


Reply


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
ftp from LInux to Serv-U ftp server problem csross Linux - General 2 11-07-2005 05:35 PM
FTP problem DataCorrupt Linux - Newbie 1 08-04-2005 12:06 PM
problem with ftp on mandrake 10.1 Official, ftp speeds system wide (anybody noticed?) equinox Mandriva 15 11-10-2004 03:07 PM
FTP Problem - Please help fuelinjection Linux - General 13 12-07-2003 11:46 AM
FTP problem kilogoretrout Linux - General 3 06-22-2003 12:37 AM


All times are GMT -5. The time now is 10:59 AM.

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