2009-11-18 02:20:40     急!!!如何在uClinux下增加telnet登陆时的密码

Document created by Aaronwu Employee on Aug 19, 2013
Version 1Show Document
  • View in full screen mode

2009-11-18 02:20:40     急!!!如何在uClinux下增加telnet登陆时的密码

zhang zhihua (CHINA)

Message: 82468   

 

大家好!

 

      我用的开发板是BF518F-EZBRD,我想在使用telnet登陆的时候验证用户名和密码,但是添加不上去!我参照下面这个网址的内容对内核做了配置:

 

  docs.blackfin.uclinux.org/doku.php?id=faq&s[]=telnet&s[]=login

 

    In Blackfin uclinux enviroment, use passwd to modify root passwd. and copy the generated etc/passwd file to your uclinux-dist/vendor/AnalogDevices/<board>/passwd, so you know what the root passwd is. You can also add other user names in this file.

    modify uclinux-dist/vendor/AnalogDevices/<board>/inittab, add one line:

 

    ttyS0::respawn:/bin/getty -L ttyS0 57600 vt100

 

    Unselect [Customize Vendor/User Settings] -→ [Core Applications] -→ [enable console shell]. Remove any binary and object files in folder uClinux-dist/user/init/.

 

    ~/your-uClinux-dist/> cd user/init

    ~/your-uClinux-dist/user/init/> make clean

 

    Select Customize Vendor/User Settings] -→ [tinylogin] → (login,getty,passwd,su etc.). Build kernel.

 

     ~/your-uClinux-dist/> make

    ~/your-uClinux-dist/> cd romfs/bin

    ~/your-uClinux-dist/romfs/bin/> ln -s tinylogin getty

    ~/your-uClinux-dist/romfs/bin/> ln -s tinylogin login

    ~/your-uClinux-dist/romfs/bin/> ln -s tinylogin passwd

    ~/your-uClinux-dist/romfs/bin/> cd ../../

    ~/your-uClinux-dist/> make image

 

但是在最后几步时出现如下问题:

 

root@ubuntu:/home/uClinux-dist/romfs/bin# ln -s tinylogin getty

ln: creating symbolic link `getty': File exists

root@ubuntu:/home/uClinux-dist/romfs/bin# ln -s tinylogin login

ln: creating symbolic link `login': File exists

root@ubuntu:/home/uClinux-dist/romfs/bin# ln -s tinylogin passwd

ln: creating symbolic link `passwd': File exists

 

为什么呢?而且执行make image 后产生的vmImage文件很大,有2M多!如果不做后面这几步,下装后使用telnet登陆仍然不会进行密码检查...

TranslateQuoteReplyEditDelete

 

 

2009-11-18 09:57:04     Re: 急!!!如何在uClinux下增加telnet登陆时的密码

Mike Frysinger (UNITED STATES)

Message: 82505   

 

this is not a u-boot question.  please post your questions to the right forum.  ive moved this thread for you.

Attachments

    Outcomes