Operating System - HP-UX
1752295 Members
4824 Online
108786 Solutions
New Discussion юеВ

Re: how to display particular message before login prompt.

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

how to display particular message before login prompt.

Hi

In my HP-UX, I am getting following message before login prompt.

Ex:

Use of the Network is restricted to authorized users. User activity is
monitored and recorded by system personnel. Anyone using the Network
expressly consents to such monitoring and recording. BE ADVISED, if
possible criminal activity is detected, system records, along with
certain personal information, may be provided to law enforcement officials.

login:


How to set this info.

14 REPLIES 14
Dennis Handly
Acclaimed Contributor

Re: how to display particular message before login prompt.

There is /etc/motd which shows up after. There is /etc/issue which shows up before.
http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1060367

There are other banners for ftp or telnet, etc.
T G Manikandan
Honored Contributor

Re: how to display particular message before login prompt.

/etc/issue
senthil_kumar_1
Super Advisor

Re: how to display particular message before login prompt.

Hi

I checked both files /etc/motd and /etc/issue.

in that nothing stored like my display message.

I am using telnet to login.
T G Manikandan
Honored Contributor
Solution

Re: how to display particular message before login prompt.

if its telnet you need to check the /etc/inetd.conf file

for the telnetd line with -b option.

it should have telnetd -b , please check.
Bijeesh
Respected Contributor

Re: how to display particular message before login prompt.

Hi
You can create a file which containing your message.The path of this file need to give with the -b option in /etc/inetd.conf file for telnet.

For Ex. I have used a file /ban
#cat /etc/inetd.conf | grep telnet
telnet stream tcp nowait root /usr/lbin/telnetd telnetd -b /ban
Avinash20
Honored Contributor

Re: how to display particular message before login prompt.

You could also refer to
http://www.unixworks.net/papers/wp-007.pdf
This is just for your knowledge
"Light travels faster than sound. That's why some people appear bright until you hear them speak."
Tingli
Esteemed Contributor

Re: how to display particular message before login prompt.

Check what sshd_conf says. It might be /etc/issue or something else under Banner.
Ganesan R
Honored Contributor

Re: how to display particular message before login prompt.

Hi,

Contents of the following files will be shown throughout the login process. You need to understand the use of the files and check it.

/etc/copyright -> Will display vendor specific details normally.

/etc/issue ->Generic message for the users

/etc/motd -> Message of the day(MOTD) for the users.

By default /etc/issue will be given in the inet.conf file for telnet connections. But you can use any customized files as well.

Hope this helps you.
Best wishes,

Ganesh.
Bill Hassell
Honored Contributor

Re: how to display particular message before login prompt.

> before login prompt

/etc/issue is the standard file that is displayed BEFORE the login prompt. However, you did not indicate the login method (telnet? rlogin? ssh?) which is important. Each of the methods has an option to control the pre-login message:

telnetd -b /somefile
rlogind -B /somefile

These banner file options are set in the file: /etc/inetd.conf

sshd is configured with the file /opt/ssh/etc/sshd_config. The man page is sshd_config and the kedyword is Banner. NOTE: if you aren't using the HP-packaged version, the sshd_config file may be in a different directory. Use find to locate the file (either /etc or /usr).

You may want to find the warning file first. Use find and grep like this:

find /etc -type f -exec grep -l "BE ADVISED" {} \;

The name of the file may be useful to determine where it was configured. If nothing else, you now know the name of the file -- just edit it to change the prelogin message.


Bill Hassell, sysadmin