Linux中国 Linux中国门户站!
设为主页 设为主页
收藏本站 收藏本站
 
当前位置 :首页 ->操作系统 ->FreeBSD ->正文

怎麽样设定 telnet prompt ?

来源:Linuxdby.com 作者:Webmaster 时间:2007-05-26 点击: [收藏] [投稿]
1. 编辑 /usr/local/libexec/telnetd

   #!/bin/sh -- 
   /bin/cat /etc/issue.net
   echo `/usr/local/bin/chinese_uptime` 
   exec /usr/libexec/telnetd

2. 修改 /etc/inetd.conf
   把 /usr/libexec/telnetd 改成 /usr/local/libexec/telnetd

3. 取得 chinese_uptime
   # cd /usr/local/bin
   # fetch ftp://freebsd.csie.nctu.edu.tw/pub/jdli/binary/
     chinese_uptime
   # chgrp kmem chinese_uptime
   # chmod 2755 chinese_uptime

4. 编辑欢迎画面 /etc/issue.net

5. 重新启动 inetd
   # kill -1 `cat /var/run/inetd.pid`


 如果您对本文有任何疑问或者建议,请到讨论区发表您的意见: >> 论坛入口 <<



上一篇:FreeBSD 版本命名原则   下一篇:为何要安装 identd ?

文章评论】 【收藏本文】 【推荐好友】 【打印本文】 【我要投稿】 【论坛讨论
更多相关文章
Power by linux-cn.com 粤ICP备05006655号