LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-12-2004, 09:28 PM   #1
matt412
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Rep: Reputation: 0
Lost with ProFTPD


I'm new to linux and I'm trying to configure a Slackware 9.1 box as an FTP server.

The problem is that I can't get a login sequence from a foreign machine. I can connect, but then I get nothing. When I type 'ftp localhost', I can log in just fine.

I'm configured right as far as I know...

In /etc/rc.d/rc.inet2:


code:# Start the inetd server:
if [ -x /usr/sbin/inetd ]; then
echo "Starting Internet super-server daemon: /usr/sbin/inetd"
/usr/sbin/inetd
else
echo "WARNING: /usr/sbin/inetd not found."
fi




In /etc/inetd.conf

code:ftp stream tcp nowait root /usr/sbin/tcpd proftpd



And I left /etc/ProFTPD.conf just as it was (with SERVERTYPE inetd).

Can anyone suggest what I might have done wrong? I really have no idea where to start.

Thanks.
Matt
 
Old 07-12-2004, 09:55 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Check and make sure that ProFTPD is actually listening on port 21, do:

"netstat -tpan | grep :21"

and make sure that inetd is listening on port 21. If this is the case, you might try specifying the full path to the ProFTPD bnary in inetd.conf (I'm not sure where all it looks for binaries). I don't use ProFTPD but make sure it's configured to allow people to actually log in.
 
Old 07-12-2004, 10:03 PM   #3
matt412
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Thanks for your input.

This is what I got:

Code:
root@backup:~# netstat -tpan | grep :21
tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN      648/inetd
root@backup:~#
I assume that means inetd is in fact listening on port 21.
Also, I know ProFTPD is accepting connections. I tried 'ftp localhost' and was able to login.

Anyone have an idea? :-/
 
Old 07-12-2004, 11:18 PM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Are you by any chance trying to access it from behind a NAT firewall (or any type of firewall for that matter). NAT firewalls can cause problems with active (but not passive) FTP connections. In any case, you'll need to make sure your firewall is not blocking access to port 21 on the machine -- that seems the most likely problem given the symptoms you've described.
 
  


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
proftpd: proftpd startup failed tumana Linux - Newbie 14 06-17-2012 12:06 PM
[PROFTPD] Ldap and proftpd authentication wesleywest Linux - Software 1 02-22-2005 10:51 AM
power lost from cable modem, interface lost a10392 Linux - Networking 4 11-16-2004 10:01 AM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 11:27 AM
proftpd --- need help? could someone post a working proftpd.conf i could look at ZooRoPa Linux - Networking 1 04-02-2003 07:56 PM


All times are GMT -5. The time now is 06:11 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