Documentation:AVR32 Linux Development/FTP demon

From AVRFreaks Wiki

Jump to: navigation, search

The STK1000 Linux environment includes troll-ftpd, which is a freely available, small, but unsupported, FTP daemon from Trolltech AS. The FTP daemon is run from inetd, and is enabled by the following line in /etc/inetd.conf:

ftp stream tcp nowait root.root /usr/sbin/ftpd ftpd

The FTP daemon allows anonymous FTP uploading and downloading of files in the /home/ftp directory. This can be used as a simple way to transfer programs and files to the STK1000.

To log in anonymously, enter ftp when asked for a user name:

Connected to xx.xx.xx.xx.

220-Setting memory limit to 1024+1024kbytes

220-Local time is now 01:16 and the load is 0.00.

220 You will be disconnected after 1800 seconds of inactivity.

User (xx.xx.xx.xx:(none)): ftp

230 Anonymous user logged in.

ftp>


If you are getting the following error when you ftp.

ftp 192.168.0.208
Connected to 192.168.0.208.
220-Setting memory limit to 1024+1024kbytes
220-Local time is now 15:03 and the load is 0.00.
220 You will be disconnected after 1800 seconds of inactivity.
502 Security extensions not implemented
502 Security extensions not implemented
KERBEROS_V4 rejected as an authentication type
Name (192.168.0.208:mebarton1): ftp
230 Anonymous user logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> ls
502-PORT/EPRT is disabled for security reasons.                             ERROR
502 Please use PASV/EPSV instead ("passive on")                             ERROR
ftp: bind: Address already in use                                           ERROR


Found this problem in 2.6.18-atngw you can check this with the following command

~ # uname -a
Linux static-host 2.6.18-atngw #1 Fri Apr 27 13:45:58 CEST 2007 avr32 unknown


Try adding "-l -a" to the FTP control file /etc/inetd.conf :

From:

ftp             stream  tcp nowait      root.root /usr/sbin/ftpd ftpd

To:

ftp             stream  tcp nowait      root.root /usr/sbin/ftpd -l -a ftpd

File should like like this:

ftp             stream  tcp nowait      root.root /usr/sbin/ftpd -l -a ftpd
#netbios-ssn    stream  tcp nowait      root.root /usr/sbin/smbd smbd
#netbios-ns     dgram   udp wait        root.root /usr/sbin/nmbd nmbd
swat            stream  tcp nowait.400  root.root /usr/sbin/swat swat
Personal tools