出 处: rose.dlut.edu.cn
From: Rainman@cse_ttit (*Query Rainman)
※ 引用『cowcow@cse_ttit』之铭言: > 各位前辈,请问一下喔: > 我想在 user 登录之前显示一些画面,亦即 > 在 login 之前显示一些message ,怎麽做呢?
方法一: 1. 把 /usr/etc/in.telnetd 改名为 in.telnetd.xx (随你高兴). 2. 写一个 shell script 取代 /usr/etc/in.telnetd, 而这 script 中可以在 exec /usr/etc/in.telnetd.xx 之前执行你想要的工作, banner 图形就在这里 show 出. 方法二: 1. 修改 /etc/inetd.conf 上的 "telnet" 的那一行的 /usr/etc/in.telnetd 改为另一个 shell script 的 full pathname, 由这个 script 去 show 出 banner 图形, 最後再执行 exec /usr/etc/in.telnetd.
依这二种方法也可引伸出其他方法, 或修改其他 daemon 或 utility.
In short:in ur /usr/etc/in.telnetd #!/bin/sh cat /etc/login.banner <--------- u can show 画面 in this file if [ -x /etc/login.banner.system ] then cat /etc/login.banner.system fi echo -n "" exec /usr/etc/in.telnetd.exe
> 还有在bbs的welcome 画面显示一些控制 > 码,例如反白,闪烁等等....
---> Thats all ANSI control code:)
-- ☆ [Origin: ◎椰林风情◎] [From: woju.g1.ntu.edu.tw ] [Login: **] [Post: **]
-- ※ 来源:.碧海青天 bbs.dlut.edu.cn.[FROM: 202.118.65.49]
|
|