對本機:先修改文件/etc/issue改為相要顯示的內容,再修改文件/etc/rc.d/rc.local(RedHat)或/etc/rc.d/rc.S(Slackware)把下面幾句注釋掉: #Thiswilloverwrite/etc/issueateveryboot.So,makeanychangesyou#w ant tomaketo/etc/issuehereoryouwilllosethemwhe
對本機: 先修改文件 /etc/issue 改為相要顯示的內容, 再修改文件 /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 # w
ant 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
不然的話每次重新啟動 /etc/issue 都會被更改。
對 telnet 的遠地機器: 先把文件 /etc/usr/sbin/in.telne
td 改名,如改為 in.telnetd.exe ,再編一個名為 in.telnetd 的 shell 腳 本, 在顯示完需要的內容後再調用 in.telnetd.exe 。如:
#!/bin/sh cat /etc/login.banner #需要在登錄提示符前顯示的內容 echo -n "" exec /usr/sbin/in.telnetd.exe