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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

message before login prompt.

Status
Not open for further replies.

ranjank

IS-IT--Management
May 9, 2003
176
IN
Hi

Can anyone tell how to display message before login prompt.I tried editing login.cfg putting message infront herald but it is taking lot of time to login to the server.Can anyone help me on this.

Regards,
RK.
 
edit the motd file in the /etc directory, that is where you put all messages for the day, which will be seeing by users when they log in - good luck.
 
The file that you want to create/modify to display messages BEFORE login is /etc/issue (this may be /etc/issue.net on some unixes). Say, for example, you want this message -

Unauthorized Access Prohibited

to be displayed before the login prompt. Simply put this in /etc/issue (set the file so that it is readable by all) and you are all set. If there is any other information you want the user to see after login, put it in /etc/motd.
 
AIX doesn't have /etc/issue. It's /etc/security/login.cfg. ranjank, does the message you have put in /etc/security/login.cfg appear, even if it takes a long time to appear?
 
Hi ALL

I got the solution.I added the message in /etc/security/login.cfg.In login.cfg there is one option called herald which you can use to display the message before login.I added herald in default in login.cfg file and addedd the message in double quotes.

e.g

default:
herald = "Access Restricted"

Thanks for everyone for the help.

Regards,
RK.
 
Hi ALL

I got the solution.I added the message in /etc/security/login.cfg.In login.cfg there is one option called herald which you can use to display the message before login.I added herald in default in login.cfg file and addedd the message in double quotes.

e.g

default:
herald = "Access Restricted \n Enter Login:"

Thanks for everyone for the help.

Regards,
RK.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top