Difference between revisions of "FTP FAQ"


From Knoppix Documentation Wiki
Jump to: navigation, search
(Performed additional edits and wiki edits.)
Line 1: Line 1:
==== 1) FTP ====
+
= [[FTP FAQ]] =
The knoppix cd has an ftp server installed on it. However if you try to ftp to a knoppix machine you will get a connection refused message. This is due to the settings in the /etc/hosts.deny file. The hosts.deny file is in fact a symlink to /KNOPPIX/etc/hosts.deny
+
The [[knoppix]] [[ISO]] has an ftp server installed and running on it. However if you try to ftp to a knoppix machine you will get a connection refused message. There are two files that control ftp connections to the knoppix system. The settings in the /etc/hosts.deny file prevent access. The hosts.deny file is in fact a symlink to /KNOPPIX/etc/hosts.deny
The last line of it reads as below
+
The last line of the hosts.deny reads
 +
 
  ALL:PARANOID
 
  ALL:PARANOID
The stock hosts.allow files will allow ftp from localhost only. You will have to change this too.
+
The stock hosts.allow file, on the otherhand, has been configured to allow ftp access from the localhost that the [[knoppix]] [[ISO]] was [[booting| booted]] on. You will have to change both the hosts.allow file along with the hosts.deny file in order to gain access via ftp.
These two files are prohibiting ftp connections to the knoppix system.
+
 
 +
What I do is delete the symlink and restart inetd.conf?
  
What I do is delete the symlink and restart inetd.conf
 
 
Here are the necessary steps:
 
Here are the necessary steps:
*Configure networking from the menu
+
* Configure networking from the menu
*Open a console and set a password for user knoppix:
+
* Open a console and set a password for user knoppix:
**'''passwd knoppix
+
*Open a root shell and do:
+
passwd knoppix
**'''rm /etc/hosts.deny
+
* Open a root shell enter this sequence of commands:
**'''rm /etc/hosts.allow
+
**'''/etc/init.d/inetd restart
+
rm /etc/hosts.deny
 +
rm /etc/hosts.allow
 +
/etc/init.d/inetd restart
 
Now the ftp server is ready and from any client you can ftp to knoppix system, use 'knoppix' as user name and the password you set as password.
 
Now the ftp server is ready and from any client you can ftp to knoppix system, use 'knoppix' as user name and the password you set as password.

Revision as of 02:22, 24 September 2005

FTP FAQ

The knoppix ISO has an ftp server installed and running on it. However if you try to ftp to a knoppix machine you will get a connection refused message. There are two files that control ftp connections to the knoppix system. The settings in the /etc/hosts.deny file prevent access. The hosts.deny file is in fact a symlink to /KNOPPIX/etc/hosts.deny The last line of the hosts.deny reads

ALL:PARANOID

The stock hosts.allow file, on the otherhand, has been configured to allow ftp access from the localhost that the knoppix ISO was booted on. You will have to change both the hosts.allow file along with the hosts.deny file in order to gain access via ftp.

What I do is delete the symlink and restart inetd.conf?

Here are the necessary steps:

  • Configure networking from the menu
  • Open a console and set a password for user knoppix:
passwd knoppix
  • Open a root shell enter this sequence of commands:
rm /etc/hosts.deny
rm /etc/hosts.allow
/etc/init.d/inetd restart

Now the ftp server is ready and from any client you can ftp to knoppix system, use 'knoppix' as user name and the password you set as password.