對(duì)本機(jī):;先修改文件;/etc/issue;改為相要顯示的內(nèi)容,;再修改文件;/etc/rc.d/rc.local(RedHat);或;/etc/rc.d/rc.S(Slackware);把下面幾句注釋掉:;
#;This;will;overwrite;/etc/issue;at;every;boot.;So,;make;any;changes;you;#;want;to;make;to;/etc/issue;here;or;you;will;lose;them;when;you;reboot.;echo;"";>;/etc/issue;echo;"Red;Hat;Linux;$R";>>;/etc/issue;echo;"Kernel;$(uname;-r);on;$a;$(uname;-m)";>>;/etc/issue;
cp;-f;/etc/issue;/etc/issue.net;echo;>>;/etc/issue;
不然的話每次重新啟動(dòng);/etc/issue;都會(huì)被更改 。;
對(duì);telnet;的遠(yuǎn)地機(jī)器:;先把文件;/etc/usr/sbin/in.telnetd;改名,如改為;in.telnetd.exe;,再編一個(gè)名為;in.telnetd;的;shell;腳;本,;在顯示完需要的內(nèi)容后再調(diào)用;in.telnetd.exe; 。如:;
#!/bin/sh;cat;/etc/login.banner;#需要在登錄提示符前顯示的內(nèi)容;echo;-n;"";exec;/usr/sbin/in.telnetd.exe;
推薦閱讀
- 如何查ETC是哪個(gè)銀行辦理的
- Linux下如何刪除Windows分區(qū)
- 閃電貸如何還款
- 浴巾有霉點(diǎn)如何去除
- gta5直播如何觀看
- 如何使用360解壓進(jìn)行文件解壓
- 如何確定支付違約金數(shù)額
- 發(fā)現(xiàn)病兔如何處理
- iphone如何強(qiáng)制退出別人的id
- 如何調(diào)整馬桶水位
