PDA

View Full Version : How do I start FTPd?



Jon_K
03-11-2004, 01:18 AM
I can't ftp into my knoppix box but can SSH in.

Obviously because ftpd is a different service.

HOW do I activate the ftpd service, and, additionally how can I make it activate on startup?

I've searched the forum finding several people looking on how to start an ftp server, and some people give very odd instructions that end up not helping at all....

I've deleted my /etc/hosts.deny list.... but I still CANNOT access my box via ftp:// on windows....

I'd really appriciate if someone could help me through this (without) giving me bad instructions.

I'm using Knoppix 3.3 for your information.


PLEASE HELP!! THANKS!

rickenbacherus
03-11-2004, 02:43 AM
Well unless something has changed the Docs provide instructions for FTP

http://www.knoppix.net/docs/index.php/FaqFTP

Jon_K
03-11-2004, 03:04 AM
root@linux:/home# passwd knoppix <PASSWORD OBSCURED>
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@linux:/home# rm /etc/hosts.deny
rm: remove regular file `/etc/hosts.deny'? u
root@linux:/home# rm /etc/hosts.deny
rm: remove regular file `/etc/hosts.deny'? y
root@linux:/home# rm /etc/hosts.allow
rm: remove regular file `/etc/hosts.allow'? y
root@linux:/home# /etc/init.d/inetd restart
Restarting internet superserver: inetd.
root@linux:/home# ftp localhost
ftp: connect: Connection refused
ftp>

Seems like the instructions did not work, is this my fault or the guy who programs knoppix made a bug in the system?

Please help me resolve this.

Cuddles
03-11-2004, 03:32 AM
Is it me, considering I am a ftp noob here, but wouldn't a "connection refused" from one computer to the other computer, signify the problem is on the "other" computer???

Source = connect
Target = connection refused

Am I wrong here?

Also, Jon, do you have a firewall running? When I neded to get a ftp out of my machine to a remote, my firewall needed to be openned up on both local and internet to accept ftp. In my case, not having the "internet" side set for ftp, gave me "permission denied" messages.

Just curious,
Cuddles

A. Jorge Garcia
03-11-2004, 04:06 AM
sshd is so easy to setup and use. Why not try sftp?

Regards,
AJG

rickenbacherus
03-11-2004, 04:55 AM
root@linux:/home# passwd knoppix <PASSWORD OBSCURED>
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@linux:/home# rm /etc/hosts.deny
rm: remove regular file `/etc/hosts.deny'? u
root@linux:/home# rm /etc/hosts.deny
rm: remove regular file `/etc/hosts.deny'? y
root@linux:/home# rm /etc/hosts.allow
rm: remove regular file `/etc/hosts.allow'? y
root@linux:/home# /etc/init.d/inetd restart
Restarting internet superserver: inetd.
root@linux:/home# ftp localhost
ftp: connect: Connection refused
ftp>

Seems like the instructions did not work, is this my fault or the guy who programs knoppix made a bug in the system?

Please help me resolve this.

Is ftpd even runing?
ps aux|grep ftp

Jon_K
03-11-2004, 06:27 AM
sshd is so easy to setup and use. Why not try sftp?

I have been! It is really nice, but I will be having people connecting to the box that won't have winSCP.



Is ftpd even runing?
ps aux|grep ftp

root@linux:/# ps aux|grep ftp
teamspe 14020 0.0 0.1 2760 972 ? SN 21:38 0:00 /usr/lib/sftp-server
root 14698 0.0 0.0 1536 452 pts/1 SN 23:26 0:00 grep ftp
root@linux:/#

Is this right? Help me here rickenbacherus, i appriciate your help

windos_no_thanks
03-11-2004, 09:07 AM
Is ftpd even runing?
ps aux|grep ftp
If inetd has been configured to start it ftpd shouldn't be running (except when someone is connected)

Jon_K
03-12-2004, 02:22 AM
If inetd has been configured to start it ftpd shouldn't be running (except when someone is connected)

So can you help windos? :)

windos_no_thanks
03-12-2004, 08:39 AM
If inetd has been configured to start it ftpd shouldn't be running (except when someone is connected)

So can you help windos? :)

Well, do you have a line beginning with "ftp " in /etc/inetd.conf ?
(by default I think it has a "#" in front of it which has to be removed if you want ftpd to be started by inetd)