[ 永遠的UNIX::UNIX技術資料的寶庫 ]   GB | BIG5

首頁 > 系統管理 > Linux > 正文
如何修改登錄畫面?
不詳 (2001-05-08 14:18:08)
對本機: 先修改文件 /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 # 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 

不然的話每次重新啟動 /etc/issue 都會被更改。 

對 telnet 的遠地機器: 先把文件 /etc/usr/sbin/in.telnetd 改名,如改為 in.telnetd.exe ,再編一個名為 in.telnetd 的 shell 腳 本, 在顯示完需要的內容再調用 in.telnetd.exe 。如: 

#!/bin/sh cat /etc/login.banner #需要在登錄提示符前顯示的內容 echo -n "" exec /usr/sbin/in.telnetd.exe 
(http://www.fanqiang.com)
    進入【UNIX論壇

相關文章
 

★  樊強制作 歡迎分享  ★