SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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
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.
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
Location: Sherbrooke, Quebec, Canada, North America, World, Milky Way
Distribution: Gentoo
Posts: 103
Rep:
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" ?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.