Making vsftpd work on Slackware13...
I'm really struggling to get vsftpd to work on my virtual server.
I've installed it and uncommented out the vsftpd line in inetd.conf I've played around with vsftpd.conf and even reduced it to the following minimal file, (which I found somewhere!): anonymous_enable=YES local_enable=YES write_enable=NO listen=NO I've checked to make sure it's running with netstat, and restarted inetd after changing the conf files. I'm not sure what else I should try! When I try and connect to it with a remote ftp client it won't even get to username stage. I'm using the vsftpd package and installing with pkgtool. I don't have an ftp client installed or any compilers as I'm trying to keep the installation as minimal as possible. I've also got Apache installed and running, along with mysql and php. Does anyone have any ideas on what's going wrong? Many thanks, John |
Firewall blocking it perhaps?
Another possibility is tcpwrappers.. does /etc/hosts.deny have anything in it? If you don't have an ftp client you could try Code:
telnet localhost 21 |
Thanks mRgOBLIN,
I've checked hosts.deny and it's pretty spartan, and what little there is in there is all commented out anyway. My Slackware install is very, very basic! Just installed the slackware telnet client and tried that, and got the following: sh-3.1# telnet localhost 21 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Connection closed by foreign host. I'm at a bit of a loss as to why it won't work. I am a bit of a newbie, but have managed to get everything else I need for a working web server sorted (apache, mysql, php), only to fail at the last hurdle on the ftp server! I've done extensive googling and forum trawling and cannot seem to find any answers on it. vsftpd doesn't have any dependencies does it? - although I guess if it did and I were missing any packages I'd get some form of error when starting inetd? Many thanks, John |
Try these.. (as root)
Code:
fuser -v 21/tcp Code:
ldd $(which vsftpd) |
Quote:
|
Thanks mRgOBLIN,
Tried these and got the below: Code:
sh-3.1# fuser -v 21/tcp Code:
sh-3.1# ldd $(which vsftpd) Is there anything out of the ordinary about any of the output above? Many thanks, John |
Hangdog42 - thanks for that, will have a read through that and see if the problem is there.
It's a virtual server in a data center somewhere. Am trying to use it with an FTP client on my desktop at home, so don't have LAN access unfortunately. Many thanks, John |
Can you connect to it via localhost? Try running your FTP client on the same box as the FTP server. If that works, paste the output of the following command run on the server:
tcpdump -i eth0 -n tcp port 21 And while that's running, attempt to connect to the FTP service from another box. That will tell us if the server is ever seeing the connection attempt. |
Thanks guys, had a look through these things and still not quite sure why it's not working.
Doesn't Slackware come with all ports open as default? I've got a very minimal installation, so don't have iptables installed. Alan, I've tried that, so hopefully getting somewhere! Code:
sh-3.1# lftp localhost Code:
sh-3.1# tcpdump -i eth0 -n tcp port 21 I've blanked out ip addresses, I hope that's ok. xxx is the server. Many thanks, John |
Quote:
Have you looked in the log files to see if vsftpd is complaining about anything? Quote:
|
Thanks for your help Hangdog, I've struggled with this on and off for the last couple of weeks reading on forums and manpages etc, and still not having any joy!
There are no vsftpd Log files visible in /var/log as would be expected. I've played around with vsftpd.conf some more and expanded it to include the following, but to no avail: Code:
anonymous_enable=YES I'm about ready to give up on it, however I figure it must work one way or another + once it's done I won't have to worry about it, and it would be really handy to get it working. Many thanks, John |
OK, lets start with some basics (and I know you've done some of this already, but lets make sure). First, use netstat -pantu and make sure that inetd is listening on port 21. Also look at the output of iptables -L -n and make sure that there isn't a firewall in place.
Otherwise, looking at your vsftpd.conf, I think it may be a bit too spartan. Just for giggles, here is mine, and at least on my rig it definitely works with inetd. In particular, I'm worried that the connect_from_port_20=YES line is missing. Also, vsftpd leave a record of connections in /var/log/secure. You might look in there to see if there is even a connection made. Code:
# Example config file /etc/vsftpd.conf |
Thanks Hangdog.
I've changed the vsftpd.conf file to the same as yours. iptables is not installed - when I try and run it it just says command not found. var/log/secure is totally blank, and the other log files don't even exist - not sure why? Code:
sh-3.1# netstat -pantu Then when I try and connect it changes to the following: Code:
sh-3.1# netstat -pantu Thanks, John |
Quote:
Quote:
Quote:
|
Hi Hangdog,
Thanks for your reply. It's a very minimal install of Slackware offered by my VPS hosting provider. So it comes with very little out the box - anything I needed, I had to add the packages required together with any dependencies. Have managed to get Apache, MySQL and PHP working without any problems, but VSFTPD is proving a bit of a stumbling block! I've installed it from the vsftpd package in the n disk set (http://www.mirrorservice.org/sites/f...0/slackware/n/). I am running all commands as root, so iptables definitely isn't installed. Do I need it? There are files in var/log for other things, but nothing for VSFTPD, eg xferlog and vsftpd.log Yeah, am restarting inetd each time. The code snippets in my last post were cut and pasted in wrong order, so please don't pay any attention to process ids, as I've just noticed that they don't really tally up! Many thanks, John |
All times are GMT -5. The time now is 05:51 PM. |