Operating System - HP-UX
1747980 Members
4733 Online
108756 Solutions
New Discussion юеВ

Re: How to get login message

 
SOLVED
Go to solution
senthil_kumar_1
Super Advisor

How to get login message

Hi

I am getting following login message when i loggin to my system.

login: ze4egi
Password:
Please wait...checking for disk quotas

General Motors Division
Engineering Network


Unauthorized use is prohibited.
Welcome, Senthil Kumar.
You last logged in Thursday April 16, 2009 at 07:53, on GMLG Node lgapps.

General Motors Electromotive Division
Engineering CAD/CAM/CAE Network


Unauthorized use is prohibited.

ze4egi>

like this how can i set login message.
21 REPLIES 21
Md. Farhan A Azam
Trusted Contributor

Re: How to get login message

Hi,

#vi /etc/motd
(add your msg)

Hope it will work.


Thnx...farhan
Richard Hepworth
Esteemed Contributor

Re: How to get login message

Hi,

Most likely to be in either ~/.profile of /etc/profile

regards,

Richard
Md. Farhan A Azam
Trusted Contributor

Re: How to get login message

If /etc/motd file doesn't exist.

Then..
#cd /etc
#touch motd
#vi /etc/motd
(add your msg)

Hope it will work.

thnx...farhan
James R. Ferguson
Acclaimed Contributor

Re: How to get login message

Hi:

Begin by looking at your login '${HOME}/.profile'.

Regards!

...JRF...
Bijeesh
Respected Contributor

Re: How to get login message

hi
I think you can put it on .profile.
/etc/motd is also a best place to put login messages.(Message Of The Day)


Jozef_Novak
Respected Contributor

Re: How to get login message

Also look if there is a file called /etc/issue

J.
senthil_kumar_1
Super Advisor

Re: How to get login message

I am getting above message after logged in.

I checked following files but there is no
information


/etc/motd
/etc/issue
/$HOME/.profile
Richard Hepworth
Esteemed Contributor

Re: How to get login message

Hi,

Did you check /etc/profile?
Also are any other files being sourced from ~/.profile or /etc/profile that could be doing this?

regards,

Richard
Michael Mike Reaser
Valued Contributor

Re: How to get login message

Check /etc/profile for the existing message.

Can you define what you're looking for a little better? If you want to *CHANGE* your login message, then you'd be looking at changing

/etc/motd
/etc/issue
$HOME/.profile
/etc/profile

I notice that you do not state that you've checked this last file.

If you want to *SET* your login message, you'd look at these same four files.
There's no place like 127.0.0.1

HP-Server-Literate since 1979