免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2666 | 回复: 0
打印 上一主题 下一主题

关于telnet登陆前后的提示 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-07-24 00:09 |只看该作者 |倒序浏览

                关于telnet登录系统,登录前提示的信息,和登录后提示的信息。
1.在出现login:的时候,login上面显示的内容通过配置/etc/default/telnetd文件,在BANNER=""的冒号里面填写你想要显示的内容:
下面是文件内容和telnet localhost结果:
bash-3.00# more /etc/default/telnetd
#ident  "@(#)telnetd.dfl        1.1     01/11/01 SMI"
#
# Copyright (c) 2001 by Sun Microsystems, Inc.
# All rights reserved.
#
# /etc/default/telnetd
#
# telnetd default settings processed via telnetd(1M).
#
# BANNER defines the connection banner which is displayed before the
# telnet login prompt, see telnetd(1M) for details.  The following
# commented line shows the default value.
#
#BANNER="\\r\\n\\r\\n`uname -s` `uname -r`\\r\\n\\r\\n"
#
#
# Suppress the telnet banner by supplying a null definition.
#
#BANNER="Welcome to visit my vmware-solaris ,if any questiones pls call me"
BANNER="==================================================================\nwelcome to access solaris operating system\nIf you have
any questiones
bash-3.00#
bash-3.00# telnet localhost
Trying ::1...
telnet: connect to address ::1: Network is unreachable
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
==================================================================
welcome to access solaris operating system
If you have any questiones,pls contact ystem administrator.
SunOS solaris-10u6 5.10 Generic_137138-09 i86pc i386 i86pc
==================================================================
login:.

2.login成功之后,第一个显示的内容,需要修改文件/etc/motd。
# more /etc/motd
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
you have accessed the system,pls pay more attention your action
#
#
bash-3.00# telnet localhost
Trying ::1...
telnet: connect to address ::1: Network is unreachable
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
==================================================================
welcome to access solaris operating system
If you have any questiones,pls contact ystem administrator.
SunOS solaris-10u6 5.10 Generic_137138-09 i86pc i386 i86pc
==================================================================
login: root
Password:
Last login: Fri Jul 24 00:05:20 from 192.168.100.119
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
you have accessed the system,pls pay more attention your action
#
               
               

本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/101718/showart_2005247.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP