根文件系統中添加telnetd服務
時間:2017-01-03作者:華清遠見
使用busybox制作的一個基本根文件系統如何添加telnetd服務呢? 下面把本人的添加過程列出來供大家分享,如有不同意見請不吝賜教! 1、 添加telnet的支持(busybox中配置)
Networking Utilities ---> 2、 添加mdev的支持(busybox中配置)
Linux System Utilities ---> 3、 添加login(busybox中配置)
Login/Password Management Utilities ---> 4、 修改etc/init.d/rcS添加mdev內容 #!/bin/sh
mount -a 5、 創建etc/hostnam,并添加主機名 farsight 6、 在etc下創建文件passwd,group,shadow,創建目錄/home 7、 修改etc/fstab為
#device mount-point type options dump fsck order 8、 內核中添加相應的支持
UNIX98_PTYS=y 9、 使用adduser添加用戶 #adduser linux 10、 添加命令行提示符格式,修改/etc/profile添加如下內容
PS1='[\u@\h \W]\# ' 11、 啟動telnet服務,在/etc/profile下添加如下內容 telnetd 這個時候我們就可以同過telnet client登陸我們的板子了。上面這些步驟有些不是必須的,大家可以根據需求選擇。 12、 參考文獻 A daemon for the TELNET protocol, allowing you to log onto the host running the daemon. Please keep in mind that the TELNET protocol sends passwords in plain text. If you can't afford the space for an SSH daemon and you trust your network, you may say 'y' here. As a more secure alternative, you should seriously consider installing the very small Dropbear SSH daemon instead:
//matt.ucc.asn.au/dropbear/dropbear.html
相關資訊
發表評論
|