Glomation
 
Advanced Search
Welcome, Guest. Please login or register.

Login with username, password and session length
May 20, 2012, 02:36:05 AM
News: Glomation introduces new GECM-9G25 SODIMM system on module
Pages: [1]
Topic Tools  
Read September 19, 2011, 10:53:19 AM #0
andrew

ftpd problems

I am having issues with ftpd.  I can connect, but I cannot send any files.  It seems to indicate that the file transfer was successful, but the file is not on the board.  I tried adding -w to the ftpd line in /etc/inetd.conf, but it didn't fix anything.

I saw this thread - http://glomation.net/smf/index.php/topic,148.0.html - but I couldn't find the ftpd program he was talking about.

Any help would be appreciated.
 
Read September 19, 2011, 02:41:01 PM #1
admin

Re: ftpd problems

The file system installed from factory is based on Emdebian.  It uses Busybox for the commonly used Linux utilities.  The ftpd is one of the applets the Busybox provides.  The in.ftpd refered in the other thread is probably the ftp server in the Debian distribution.  The ftpd applet should be started by the inetd.  The configuration file /etc/inetd.conf should include -w option for the ftpd as following in order to be able to upload files,

21      stream  tcp     nowait  root    /usr/sbin/ftpd ftpd -w

 
Read September 20, 2011, 10:46:07 AM #2
andrew

Re: ftpd problems

That is what I have in my /etc/inetd.conf file.  I connect using ftp from ubuntu and use root as the username.  I get a "230 Operation successful", so I try to do a put or an ls.  Those commands show "200 Operation successful" but then nothing else.  Eventually I have to hit ctrl-c and it says that the remote server closed the connection.  I also noticed that when I try to put a file, it will create an empty file in /.  If I try to pass a different directory to ftpd, specifically /root, I get the following errors when trying to connect using ftp:
Quote
libgcc_s.so.1 must be installed for pthread_cancel to work
Login failed.
421 Service not available, remote server has closed connection

I have also tried gftp and I get the same results.
 
Read September 20, 2011, 11:07:11 AM #3
admin

Re: ftpd problems

Try login with no user name (none)
 
Read September 20, 2011, 12:23:36 PM #4
andrew

Re: ftpd problems

Same result.  I am using the linux kernel/image/busybox that came installed on the board.  Here is the result of uname -a: Linux GESBC 2.6.27.4 #18 Sat Mar 20 20:11:49 EDT 2010 armv5tejl GNU/Linux
Here is the version of busybox: BusyBox v1.14.3 (2010-05-27 15:58:50 EDT) multi-call binary

Is there something newer I can download that might fix these issues?
 
Read September 20, 2011, 02:53:27 PM #5
admin

Re: ftpd problems

The Linux kernel shouldn't have anything to do with the FTP.  The FTPD is provided by the Busybox in the factory installed file system.  Please try to create a new user with password and login with the new user name/password.
Or setup a password for the root.
 
Read September 20, 2011, 04:23:19 PM #6
andrew

Re: ftpd problems

I setup a new user with a password using adduser.  The user was added and I could telnet to the board as the new user, but ftp is still showing the same issues, even after a reboot.

I decided to try vsftpd and got that working, so I am just going to use that instead.  It sucks that ftpd doesnt work out of the box, but at least I can get files onto the board without using a USB drive every time.
 
Read September 21, 2011, 03:52:50 PM #7
admin

Re: ftpd problems

Here is the screen log of the FTP operation before and after adding -w option in the inetd.conf file.

ftp> get pam.conf
200 Operation successful
150 Opening BINARY connection for pam.conf (552 bytes)
226 Operation successful
ftp: 552 bytes received in 0.00Seconds 552000.00Kbytes/sec.
ftp> cd /tmp
250 Operation successful
ftp> put pam.conf
200 Operation successful
500 Unknown command
ftp> quit
221 Operation successful

D:\Documents and Settings\R>



D:\Documents and Settings\R>ftp 192.168.1.35
Connected to 192.168.1.35.
220 Operation successful
User (192.168.1.35:(none)):
230 Operation successful
ftp> cd /tmp
250 Operation successful
ftp> put pam.conf
200 Operation successful
150 Ok to send data
226 Operation successful
ftp: 552 bytes sent in 0.00Seconds 552000.00Kbytes/sec.
ftp> ls
200 Operation successful
150 Directory listing
pam.conf
226 Operation successful
ftp: 10 bytes received in 0.00Seconds 10000.00Kbytes/sec.
ftp> quit
221 Operation successful

D:\Documents and Settings\R>


The file system tested is the exact factory installed file system with no modification.

 
Pages: [1]
Jump to:  

Theme Update by Runic Warrior Originally created by m3talc0re