Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

how 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 &#39;USER ftptest&#39;: 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&#39;s the problem?

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello,

    I will try telnet to my board from my PC,

    But it seems that I count&#39;t use telnet and telnetd in my uClinux.

    pls give me some advice.THANKS

    i HAVE PORTED UCLINUX ON MY BOARD.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    is there a solution for the "command not understood"-Problem?

    I get exakt the same message.

    Thanx

    Marco

    --- Quote Start ---

    originally posted by fbc99@Jun 7 2006, 11:47 PM

    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 &#39;user ftptest&#39;: 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&#39;s the problem?

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16017)

    --- quote end ---

    --- Quote End ---

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    originally posted by hippo+oct 30 2006, 09:53 am--><div class='quotetop'>quote (hippo @ oct 30 2006, 09:53 am)</div>

    --- quote start ---

    <!--quotebegin-heing@Oct 27 2006, 11:09 PM

    i have the same problem

    hein

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=18960)

    --- quote end ---

    --- Quote End ---

    ftpd-new from netkit 0.17 added to uClinux-dist, should work with ftp anonymous now.

    http://forum.niosforum.com/forum/index.php?showtopic=4927 (http://forum.niosforum.com/forum/index.php?showtopic=4927)

    user: ftp

    pass: anything

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19006)</div>

    [/b]

    --- Quote End ---

    Works great. Thank you.

    Hein