System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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
Md. Farhan A Azam
Trusted Contributor

Re: how to display particular message before login prompt.

Hi,

/etc/issue is the a textfile containing what ever message you like.

#vi /etc/issue
(add your banner)
#vi /etc/inetd.conf
(replace telnetd at the end with telnetd -b)
#inetd -c

Thnx...Farhan
Md. Farhan A Azam
Trusted Contributor

Re: how to display particular message before login prompt.

opps...missed,

#vi /etc/inetd.conf
(replace telnetd at the end with telnetd -b /etc/issue)

Thnx...Farhan
Suraj K Sankari
Honored Contributor

Re: how to display particular message before login prompt.

Hi,

if you want any message display before the login prompt then edit this file "/etc/issue"
or
if you want any message should diplay after login then edit this file "/etc/motd"

Suraj

Re: how to display particular message before login prompt.

Good Day,

Hi Kumar,

Do you have a solution on your queries. Base on the replies they did not answer your queries.

thanks.
UVK
Trusted Contributor

Re: how to display particular message before login prompt.

Check for telnetd in /etc/inetd.conf there should be a file from which they are fetching your banner. telnet line in the inetd file will give your solution
-------------------------------------------
Like it or worked !! Click kudos !!