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.
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?
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.
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:"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.