smohd
November 12, 2002, 2:33pm
1
I need to put a telnet banner on AIX 4.3 and 5.1 servers, so the users can see a warning message before logging into the system. I know /etc/motd will give the message after the login. Basically what I am asking is how do I tell system to read the /etc/issue file on AIX?.
Thank you, in advance for you reply.
Vishnu
November 12, 2002, 3:17pm
2
/etc/security/login.cfg is for that purpose on AIX...
getty opens /etc/issue on hp-ux etc.. on AIX it opens /etc/security/login.cfg... also look at this link...
use the herald = "string to show to user"..
I don't know how to display multiple line messages...
http://www.unet.univie.ac.at/aix/files/aixfiles/login.cfg.htm
Cheers!
Vishnu.
Vishnu
November 12, 2002, 3:40pm
3
also look at this link...
http://nt.bnl.gov/banner/unix_banner1.asp
Cheers!
Vishnu.
roden
November 15, 2002, 10:10am
4
To add newlines to the login screen, you need to use the following escape sequence: \r\n (CRNL).
Example:
herald = "\r\n\r\nAuthorized login only\r\nlogin: "
Will be displayed with two blank lines after you logout (add as many as you want to clear the screen):
Authorized login only
login: _CURSOR IS HERE
smohd
November 15, 2002, 1:13pm
5
Thank You very much guys for your help.
It worked the way I wanted.