2010年11月3日星期三

AIX系统登陆前及登陆后出现的提示信息设置

操作系统版本:
AIX5.3:/#oslevel
5.3.0.0
1、登陆验证通过后出现的提示信息(红色部分内容),是在/etc/motd文件中设置。
AIX5.3:/#telnet localhost
Trying...
Connected to localhost.
Escape character is '^]'.
telnet (AIX5.3)
AIX Version 5
(C) Copyrights by IBM and by others 1982, 2004.
login: root
root's Password:
*******************************************************************************
*                                                                             *
*                             AIX 测试服务器 RS6000                           *
*  Welcome to AIX Version 5.3!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************
欢聚你来到AIX专用学习测试机,请遵守相关规定,谢谢合作!
Last unsuccessful login: Sun Jul 22 13:04:16 BEIST 2007 on /dev/pts/1 from 10.249.204.54
Last login: Thu Jul 26 13:38:03 BEIST 2007 on /dev/pts/1 from localhost
查看/etc/motd文件内容:
AIX5.3:/#cat /etc/motd
*******************************************************************************
*                                                                             *
*                             AIX 测试服务器 RS6000                           *
*  Welcome to AIX Version 5.3!                                                *
*                                                                             *
*                                                                             *
*  Please see the README file in /usr/lpp/bos for information pertinent to    *
*  this release of the AIX Operating System.                                  *
*                                                                             *
*                                                                             *
*******************************************************************************
欢聚你来到AIX专用学习测试机,请遵守相关规定,谢谢合作!
2、登陆未通过验证前出现的提示信息(红色部分内容),是在/etc/security/login.cfg文件中设置。
AIX5.3:/#telnet 127.0.0.1
Trying...
Connected to 127.0.0.1.
Escape character is '^]'.

telnet (AIX5.3)
你将要登入的是属于学习专用服务器,如你未能获得授予适当权限,请不要尝试登陆。否则后果自负!

login:
手工编辑/etc/security/login.cfg
在default:这个字段中加入下面的信息:
herald = "你要添加的内容\r\n\r\n\r\nlogin:"
查看/etc/security/login.cfg文件中提示信息内容:
AIX5.3:/#cat /etc/security/login.cfg | grep 你将要
herald="你将要登入的是属于学习专用服务器,如你未能获得授予适当权限,请不要尝试登陆。否则后果自负!\r\n\r\n\r\nlogin:"

没有评论:

发表评论