1847293 Members
2785 Online
110263 Solutions
New Discussion

Re: login message

 
SOLVED
Go to solution
Ricky_2
Frequent Advisor

login message

Hi, my login window does not show the message in /etc/issue and /etc/motd. Is there anything that I should have done to enable the login message?

Thanks.
7 REPLIES 7
Robin Wakefield
Honored Contributor

Re: login message

Hi Rick,

Are you talking about at the console login? As far as I know, /etc/issue is read by getty, whereas /etc/motd, if it exists, is displayed via the /etc/profile by default. I assume both these files exist.

If you are not talking about the console, what login window are you referring to?

Rgds, Robin.
Animesh Chakraborty
Honored Contributor

Re: login message

Hi ,
You must be getting /etc/issue message on console and if you have any dumb terminal connected via serial port(mux port,MDB).
Via network I doubt.

Thanks
Animesh


Did you take a backup?
Santosh Nair_1
Honored Contributor
Solution

Re: login message

If you're talking about a telnet session, you can set the banner by editing the /etc/inetd.conf file to include a -b in the telnet line, where banner file is whatever you want shown when somone telnets to the machine.

Also, you can modify /etc/profile to cat out a disclaimer message which will be displayed everytime anyone logs in...similar to motd (message of the day).

-Santosh
Life is what's happening while you're busy making other plans
Ricky_2
Frequent Advisor

Re: login message

Hi,
I'm actually comparing with Solaris where after editing the /etc/motd, I get the message everytime I open a new CDE window. I also get the message in /etc/issue everytime I open a telnet window, before logging in.
I'm wondering how I can achieved these 2 scenarios on the HP-UX 11.0. I saw the `cat /etc/motd` in /etc/profile but I only get the message when I su to root and not when I logged in as a normal user, or opened a new CDE window, or su to a normal user.
Thanks.
Carlos Fernandez Riera
Honored Contributor

Re: login message


From /etc/profile:

# Message of the day
if [ -r /etc/motd ]
then
cat /etc/motd fi
A chmod a+r /etc/motd will show this file.


About inetd file, after modify it you must run inetd -c, to reread configuration.

unsupported
Alex Glennie
Honored Contributor

Re: login message

dtterms do not automatically source your .profile under CDE : see man page : so you need to use use dtterm -ls or vi $HOME/.Xdefaults and add :

dtterm*loginShell: True
Wodisch
Honored Contributor

Re: login message

Hello Rick,

in addition to the CDE X-resource "loginShell",
for telnet you have to modify your
"/etc/inetd.conf" to make the "telnetd" use
the option "-b /etc/issue" and then use
"inetd -c" to tell your "inetd" to read its
config file again.

HTH,
Wodisch