Quote:
Looking at your netstat output, it is clear that inetd is listening on port 21. It is also clear that when you try to connect, vsftpd isn't starting. When I connect to my server, vsftpd shows up in the netstat output, even before I complete the login. So this brings up the question, is the problem vsftpd (it isn't starting properly), inetd (it isn't communicating with vsftpd properly) or something outside of your control (like the networking environment of your hosting service). As an experiment, try taking inetd out of the equation for now and run vsftpd as a standalone service. I think to do that you need to recomment the vsftpd line in inetd.conf, then in vsftpd.conf, uncomment the LISTEN directive and then start vsftpd. Just for giggles, you might run vsftpd from a screen session so you can leave it running in a console and maybe errors will show up there. Once you've got that done, netstat should show vsftpd listening. If it is, try connecting and see what happens. |
Thanks Hangdog.
I've tried that and changed the listen directive so it runs standalone. Also worked through the following link to check I've done everything properly: ftp://vsftpd.beasts.org/users/cevans...-2.3.4/INSTALL When I try and run it standalone it seems to run, but just goes to a blank flashing cursor and basically crashes - ie it doesn't come up with a prompt, and I have to reboot the server from the vps console to get back to the shell prompt. Try it out with a remote anonymous FTP client though and it seeems to work and connect ok. Trouble is, I can't do anything else while it's running... Slowly getting there! Many thanks, John |
I've kind of solved the above by adding the following line:
Code:
/usr/sbin/vsftpd & So it starts in standalone mode when the server boots, and that seems to work ok. Still not sure why it won't work with inetd though... |
Quote:
Quote:
|
Thanks Hangdog!
Never had any joy before by trying to reconnect with SSH, just end up where I was before. Screen command looks very interesting though - will have a read through that - many thanks! Code:
sh-3.1# ldd /usr/sbin/inetd Many thanks, John |
Thanks Hangdog, had a little play with Screen today - it's really useful!
Many thanks for pointing it out to me! John |
Yeah, screen is one of those tools that once you start using it, you wonder how you managed without it. My ISP is a touch on the unreliable side (Hi Comcrap!) so whenever I'm working remotely one of the first things I do is start a screen session or two. That way if someone in the network room trips over the power cord and brings down the Internet, I don't lose anything. I just log in later and re-attach to the session.
Wish I had a decent answer as to why inetd was behaving so funky. That one has me stumped. I'm glad you got vsftp working though. |
Thanks Hangdog, yeah Screen is a really handy tool.
It's a bit of a mystery why vsftpd won't work with inetd - it would be nice to use it with inetd, as I think there is slightly less overhead running it that way, but that's a minor issue, it doesn't matter, the main thing is to have got it working at all! Thanks for all your help - I'd have been totally stuck without your helpful suggestions and insight, and was about ready to give up on it altogether. Thanks again, John |
All times are GMT -5. The time now is 12:26 AM. |