2009-11-18 19:22:55     How to create passwords for the telnet?

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

2009-11-18 19:22:55     How to create passwords for the telnet?

zhang zhihua (CHINA)

Message: 82508   

 

Hi,

 

the board I use is BF518F-EZBRD,I want to set a passwords for the telnet so that when I use telnet to login it required check the username and passwords,frist I build the kernal like this:(from   docs.blackfin.uclinux.org/doku.php?id=faq&s[]=telnet&s[]=login)

 

1.       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.

 

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

 

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

 

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

 

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

 

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

 

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

 

6.          ~/your-uClinux-dist/> make

 

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

 

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

 

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

 

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

 

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

 

~/your-uClinux-dist/> make image

 

but when I run 'ln -s ',it appears that :

 

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

 

why?how to solve this problem?

TranslateQuoteReplyEditDelete

 

 

2009-11-18 19:28:00     Re: How to create passwords for the telnet?

zhang zhihua (CHINA)

Message: 82509   

 

and after run the'make image',the 'vmImage' file are very large!it was larger more than 2M bits!

TranslateQuoteReplyEditDelete

 

 

2009-11-18 19:28:31     Re: How to create passwords for the telnet?

Mike Frysinger (UNITED STATES)

Message: 82510   

 

the FAQ is outdated and will be fixed.  please use the updated page:

https://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:managing_users

QuoteReplyEditDelete

 

 

2009-11-18 19:29:25     Re: How to create passwords for the telnet?

Mike Frysinger (UNITED STATES)

Message: 82511   

 

also, you still arent posting questions to the right forum.  please review the forum you have selected before posting questions.  if you cant manage this, i'm afraid we might have to delete posts or something undesirable.

QuoteReplyEditDelete

 

 

2009-11-18 19:37:01     Re: How to create passwords for the telnet?

zhang zhihua (CHINA)

Message: 82512   

 

oh,Mike,I'm sorry!

 

thank you!

TranslateQuoteReplyEditDelete

 

 

2009-11-19 20:36:57     Re: How to create passwords for the telnet?

zhang zhihua (CHINA)

Message: 82548   

 

Someone can help?

TranslateQuoteReplyEditDelete

 

 

2009-11-19 21:09:47     Re: How to create passwords for the telnet?

Mike Frysinger (UNITED STATES)

Message: 82549   

 

i already gave you the documenttation to read.  read it.

Attachments

    Outcomes