怎麽样设定 telnet prompt ?

资讯 驱动中国 789 次阅读 0 条评论
分享 Q
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`
怎麽样设定telnetprompt? 学习怎麽样设定teln
版权声明:本文由驱动中国整理发布,转载需注明出处与原文链接。如有疑问请联系 editor@qudong.com
本文价值 成为第一个评分的人
登录后为本文打分
网友评论0 条评论
正在回复 的评论取消
评论加载中…
🔐

登录后参与互动

评论、点赞均可赚积分
连续签到、邀请好友也有奖励 🎁

电脑端: 微信扫码登录 微信内: 一键登录

微信扫一扫

打开微信「扫一扫」,分享本文到朋友圈或好友