Operating System - HP-UX
1833828 Members
2003 Online
110063 Solutions
New Discussion

message on console before login

 
sandeep_40
New Member

message on console before login

Please help me i want to display meesage befor login prompt
intially it comes like this
HP-UX hpux212 B.11.11 U 9000/800 (tb)

login:
i want
HP-UX hpux212 B.11.11 U 9000/800 (tb)

display of message
login:

thanks
sanjay
5 REPLIES 5
Mel Burslan
Honored Contributor

Re: message on console before login

Edit /etc/issue and put the message you want displayed.

if you want the same message to be displayed when people telnet to this system, edit /etc/inetd.conf

find the line which starts with telnet and append this to the end of that line:

-b /etc/issue

save & exit then run command

inetd -c # to reread the inetd.conf

hope this helps.
________________________________
UNIX because I majored in cryptology...
Victor Fridyev
Honored Contributor

Re: message on console before login

Hi,


Edit /etc/inetd.conf as follows:
login stream tcp nowait root /usr/lbin/rlogind rlogind -B /etc/message

Write into /etc/message whatever you need and run: kill -1 NNNN , wher NNNN is PID of inetd.

The desired message will appear before password prompt.

HTH
Entities are not to be multiplied beyond necessity - RTFM
Raj D.
Honored Contributor

Re: message on console before login

Hi Sandeep ,

The answer is :

1. /etc/motd [ After login ]
2. /etc/issue [ before login , to any terminal , which respawns by getty in inittab ]

cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
Hanwant Verma_1
Regular Advisor

Re: message on console before login

edit /etc/issue file and save it after modifictaions and loging again.
Muthukumar_5
Honored Contributor

Re: message on console before login

You can do it with following steps to print messages before login as,

-- edit /etc/issue file --
Sandeep's Try with banner

-- edit /etc/inetd.conf --
telnet stream tcp nowait root /usr/lbin/telnetd \
telnetd -b/etc/issue

# Reconfigure inetd(aemon)
# inetd -c

If you want to have messages after login then edit /etc/profile as regardingly.

hth.
Easy to suggest when don't know about the problem!