- 论坛徽章:
- 0
|
关于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 |
|