Network FTP FAQ


From Knoppix Documentation Wiki
Revision as of 04:59, 18 January 2009 by Chip.ling (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Q: How to setup FTP on Knoppix ?

A: Knoppix has the FTP server up and running when booted. However, because of the security reason, it was locked so that you cannot ftp to the server.


Caution: You have to understand that the FTP is not secure and you may consider using other ftp product instead. (i.e. vsftp is a good choice)


However, for a home-based closed local network, who care? Or if you have the same machine as I have, you do not care too.


My machine: an old Pentium 3 PC with no hard-drive, 512 MB RAM, Knoppix cd on the cd-rom. If something went wrong. I simply press the reset button and reboot knoppix from cd. That's the beauty of Linux Live CD, isn't it?


The following steps were tested using Knoppix 4.0.2, 5.0.1 and 5.1.1


The information here may not be 100% correct, but it works for me. However, if you find something is wrong. Please let me know. Thank you.

chip_ling@yahoo.ca

Chip Ling 2nd Jan 2008


1. Setup knoppix password

 $ sudo passwd knoppix

It will ask you to input the password twice.

Knoppix booted with no password setup on the knoppix id. But you need one for ftp login, don't you?


2. Modify file /etc/hosts.deny

Edit the file /etc/hosts.deny, comment the line "ALL: PARANOID" and then save the file.

 $ sudo vi /etc/hosts.deny
 # ALL: PARANOID


3. Modify file /etc/hosts.allow

Edit the file /etc/hosts.allow, change the line "ALL : ALL@ALL : DENY" to the following line and then save the file.

 $ sudo vi /etc/hosts.allow
 ALL : 192.168.1.* LOCAL : ALLOW

Here I open up the server to all machines inside the subnet 192.168.1.*


4. Restart the inetd daemon

For knoppix 5.1.1:

 $ sudo /etc/init.d/openbsd-inetd restart

For knoppix 5.0.1 or older:

 $ sudo /etc/init.d/inetd restart

Now the FTP server is ready for logon, go to one of the other machine in the subnet and you should be able to connect to the server via FTP.