Altera_Forum
Honored Contributor
19 years agohow to make ftpd work??
http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif
my board is based on 1c12, i have made a successful zImage according to the steps described in wikinios.jot.com. and i can telnet to my board from pc . now i want to have a ftp server on my board: what i have dones is fowllowing: (1) when "make menuconfig" i select "ftpd" in "network application" and select "chroot" in "busybox" and select "adduser , addgroup , passwd" in " tinylogin" (2) then : make clean make romfs make create two empty files in romfs/etc: passwd group make romfs make linux image (3) then download the zImage to my board. (4) add a user in board using "adduser ftptest", but i get "adduser: Cannot determine your user name." messge but it seems that a new user has been added because then content of the file etc/passwd becomes "ftptest:x:500:500::/home/ftptest:/bin/sh" and the etc/group is: "ftptest:x:500:" (5) then try to test ftp serve with the "ftptest" username ftp 192.168.0.202 (192.168.0.202 is my board ip) then i got the following message: Connected to 192.168.0.202. 220 uClinux FTP server (GNU inetutils 1.4.1) ready.zj2 Name (192.168.0.202:none): ftptest 500 'USER ftptest': command not understood. Login failed. ftp> (6) there are no choices for me instead of "bye" i have do some more efforts, such as change the ftpd.c , but i have the same result " command not understood"!! if anyone can tell me what's the problem?