Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OS shown to telnetters 1

Status
Not open for further replies.

russz

MIS
Feb 7, 2001
14
0
0
US
When users telnet to our AIX servers I don't want them to see the OS version. e.g.

AIX Version 4
(C) Copyrights by IBM and by others 1982, 1996.
login:

I'd like them to see something more like...

WARNING *** Unauthorized Access is Prohibited ***
Name:

I'm not sure which file to edit.
Russell Zimmermann
EYT - LAWSON Development
 
You can modify the /etc/security/login.cfg file to contain a "herald" to be what you want. This is the banner that appears when the user gets to the login prompt, before he/she is actually logged in. The herald line looks like this:

default:
herald = "\n\r\n\rAuthorized Access Only\n\r\n\r\n\r\n\r\n\r login:

sak_enabled = false
logintimes =
logindisable = 0
logininterval = 0
loginreenable = 0
logindelay = 0

the \n\r has to do with the line returns.


You can also have an /etc/motd for the users that get successfully logged in. This is the banner that appears at their initial command line prompt.
Remember, amateurs built the Ark, professionals built the Titanic.
 
Try simply the \n notation... you're in Unix, remember?
[tt]
chsec -f /etc/security/login.cfg -s default -a herald='"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nAccess restricted and logged\nAuthorized username:"'
[/tt]
I hope it works...
Unix was made by and for smart people.
 
It works like a charm!

Thank you both for your help,
RZ Russell Zimmermann
EYT - LAWSON Development
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top