Click to See Complete Forum and Search --> : FTP server no want to work with linux. :(


JCool451
06-16-2003, 02:46 AM
I set up my ftpd with pure-ftp, because it says that there are no known root exploits. I set it up, it works fine on windows. I try to access the same thing from a mandrake installation through mozilla, nothin'. When I try to do it with command line, ls -aL freezes. How can I fix this? thx

christos
06-16-2003, 08:18 AM
What distro/WM are you using?
Is There firewalling enabled on the linux distro?
Can you ping the target box? Can you telnet/SSH that target box?
Need to find out if there is a network connectivity problem to the other machine or whether the problem is linux itself (and if it is it'll probably be something silly - usually is.)

Let me know what you find.

quip
06-16-2003, 08:23 AM
Like christos said, you need to determine exactly what kind of prob it is first. But if you can't figure out what's wrong, check out proftpd. It doesn't get any simpler.:D

JCool451
06-16-2003, 08:29 AM
Did I post in the wrong forum? Oh, whatever. Like I said, it works with windows. I can telnet and ssh into it. The server's OS is RH9 :( and the client's OS is Mandrake 9.1. The windows manager for both is KDE. I can ping it, everything works except ftp for linux. I took the firewall off for the linux distro a while ago, when I was first setting up the server. I have port forwarding enabled on the linksys router.

Like I said, it works, but not on Mandrake 9.1.

quip
06-16-2003, 08:38 AM
So you're getting an established connection on the cli with mandrake, but it just won't list the files? Can you change the working directory?

JCool451
06-17-2003, 09:15 PM
I can change the directory, but It times out when listing files. It times out when listing stuff, putting stuff in, or getting stuff.

marcogor
06-17-2003, 09:30 PM
Have a look in /etc/xinetd.d

It will have something like this in a file with ftp at the end of it (my instance is gssftp).

# default: off
# description: The kerberized FTP server accepts FTP connections \
# that can be authenticated with Kerberos 5.
service ftp
{
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/kerberos/sbin/ftpd
server_args = -l -a
log_on_failure += USERID
disable = yes
}

change the yes at then disable part to a no and then restart xinetd. You should then be able to ftp to and from the server.

JCool451
06-17-2003, 09:46 PM
Do I do this on the server or the client? How do I restart xinetd?

marcogor
06-17-2003, 11:08 PM
Do it on the ftp server. Then any clients will be able to ftp to the machine.

drunkpenguin
06-17-2003, 11:34 PM
usually xinitd can be restarted by a shell script in the /etc/init.d directory. just cd to there and run as root "./xinitd restart" if that doesn't work, you can always reboot. But i am sure someone know a better way than rebooting.

Taizong
06-17-2003, 11:36 PM
/etc/rc.d/init.d/./xinetd restart

or

killall -HUP xinetd

JCool451
06-18-2003, 11:50 AM
When I tried looking for xinetd.d in /etc it said "no such file or directory".

choad
06-18-2003, 12:34 PM
I love Pure FTP

JCool451
07-18-2003, 01:57 AM
OK, this is rather weird. After examing the problem, I found this... When I ftp to the server with it's internal IP address, it works fine. When I use the broadcasted IP or whatever, it doesn't work. Rather than figure this out, I'm just going to install Pro-FTP, instead. If I have any problems from there, I'll post it.

JCool451
07-18-2003, 02:10 AM
And I checked out that disable thing...

I didn't find anything in there that had ftp in it, but I did find one file that said servers, so I changed it in there. Like I said, I'm just going to put Pro-FTP on if it doesn't work.

JCool451
07-28-2003, 07:37 AM
Thought I would come back to this to people that might be reading this. I fixed the problem by putting ftpd into "active mode". It makes stuff work with NAT. (I have a router)