LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


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

Rep: Reputation: 0
ProFTPD help!


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. I can connect, but then I get nothing. 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-13-2004, 01:43 AM   #2
cccc828
Member
 
Registered: Feb 2004
Location: Austria
Distribution: Slackware
Posts: 95

Rep: Reputation: 15
Hello,

1) Is inetd running? (Try ps -A and see if you can find it there)
2) How did you try to log in? Anonymous FTP is disabled per default.

cccc828
 
Old 07-13-2004, 11:20 AM   #3
Psi_K
LQ Newbie
 
Registered: Jul 2004
Posts: 1

Rep: Reputation: 0
I'm having similar troubles, and I'm also really new to linux

Anyway, as far as I can tell, my config allows me to use the "ftp stream tcp nowait root /usr/sbin/tcpd proftp"
Then gives me an FTP> prompt
However when I attempt to use any commands in that it simply states "Not Connected"
I've been searching the net for a while to find any answers, however the information I do find I'm having troublem following.

My setup is similar to Matt412
My inetd is running.
As for the anonymous access, I'm still trying to figure things out to set up a user/pass so someone can access the service.

Any pointers is helpful, just limit the calling to 2-3 times a post
 
Old 07-13-2004, 11:27 AM   #4
Donboy
Member
 
Registered: Aug 2003
Location: Little Rock, Arkansas
Distribution: RH, Fedora, Suse, AIX
Posts: 736

Rep: Reputation: 31
Any reason why you have to run it using inetd? Unless your system is really starved for resources, there's no reason why you can't run it standalone. Just add the directive server type standalone to your config file and you don't have to struggle with setting up xinetd configs.
 
Old 07-13-2004, 11:43 AM   #5
tank728
Member
 
Registered: Sep 2003
Posts: 142

Rep: Reputation: 17
I agree with Donboy. I had some trouble setting up my ftp server with inetd, I switched to standalone, and it works great. As far as the login sequence is concerned, I remember trying to login within my own network, and it worked fine. But when I would login from within my own networking, using my public ip, I would connect, but nothing would happen, I would not even get my welcome.msg. The I when to a friends house, and tried to connect, and it worked perfectly. Also if your server is behind a router remember to port forward 21, and 20 or just put it out on the DMZ. Good Luck

-tank
 
Old 07-13-2004, 11:44 AM   #6
netmask
Member
 
Registered: Jul 2004
Location: Sherbrooke, Quebec, Canada, North America, World, Milky Way
Distribution: Gentoo
Posts: 103

Rep: Reputation: 16
Quote:
Originally posted by Psi_K
I'm having similar troubles, and I'm also really new to linux

Anyway, as far as I can tell, my config allows me to use the "ftp stream tcp nowait root /usr/sbin/tcpd proftp"
Then gives me an FTP> prompt
However when I attempt to use any commands in that it simply states "Not Connected"
I've been searching the net for a while to find any answers, however the information I do find I'm having troublem following.

My setup is similar to Matt412
My inetd is running.
As for the anonymous access, I'm still trying to figure things out to set up a user/pass so someone can access the service.

Any pointers is helpful, just limit the calling to 2-3 times a post
The user and passes for ProFTPD are your system's. So if you want to add a ftp user, you need to do "adduser"

As for your problem.. you SHOULD get an error message of some sort. What command did you use in order to connect to your ftp? "ftp ip" ?
 
Old 07-13-2004, 04:55 PM   #7
matt412
LQ Newbie
 
Registered: Jul 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Problem Solved?

I figured out whats happening. ProFTPD is up and running, and is in fact listening on port 21. The problem is that the login sequence isn't provided by the server for a good 30 seconds after the socket is connected. So, my client was continuously timeing out. Not good. I can connect fine with a raw session in putty... just have to wait those 30 seconds.

Does anyone have any idea why the sequence isn't offered immediately, like it should be? Is it a setting I messed up? I really need to use that client.

Thanks.
Matt
 
  


Reply



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 11:06 AM
[PROFTPD] Ldap and proftpd authentication wesleywest Linux - Software 1 02-22-2005 09:51 AM
Disabling the chroot in proftpd and enabling root logins on ssh/proftpd jon_k Linux - Software 1 06-16-2004 10:27 AM
proftpd help strider17 Linux - Newbie 2 02-08-2004 11:44 AM
proftpd --- need help? could someone post a working proftpd.conf i could look at ZooRoPa Linux - Networking 1 04-02-2003 06:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:52 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
Open Source Consulting | Domain Registration