Operating System - HP-UX
1834395 Members
2794 Online
110066 Solutions
New Discussion

Re: how to change login messages

 
Erkan
New Member

how to change login messages

Hi,
I am using HPUX11. And I am forcing users to change their password at least one time in a month. As users don't understand English, usually they cannot change their passwords when the system automatically wants them to change their password. So, how can I change the messages appearing at login screen?
Thanks.
9 REPLIES 9
twang
Honored Contributor

Re: how to change login messages

you can add your login message to /etc/issue
Bruno Vidal
Respected Contributor

Re: how to change login messages

Hi,
If your user are using telnet, you can modify the /etc/issue to put in it any message. It is displayed, before any logging action. You can also edit /etc/motd, but is is displayed after the loggin has been succesfull.

Cheers.
Michael Tully
Honored Contributor

Re: how to change login messages

You can use two methods. The first is /etc/issue, which displays above the login prompt, which you place your message and then make sure that you have the lines in /etc/inetd.conf file pointing to it.

telnet ..... -b /etc/issue

login ... rlogin ... -B /etc/issue

The other is the usage of the /etc/motd file, which is displayed after the login has commenced.

Regards
Michael
"When I have trouble spelling, it's called fat finger syndrome."
Anyone for a Mutiny ?
Rainer von Bongartz
Honored Contributor

Re: how to change login messages

Use /etc/issue if you want the message displayed before the login: prompt.

use /etc/motd if you want the message displayed after the login


Regards
Rainer
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
twang
Honored Contributor

Re: how to change login messages

in addition, you may also add message in /etc/profile or $HOME/.profile
Lior Mishkovsky
Advisor

Re: how to change login messages

Hi,

There are 2 files that you can change:

1. /etc/issue.
2. /etc/motd.

Lior./
Bill Douglass
Esteemed Contributor

Re: how to change login messages

HP-UX supports Native Language Service (NLS), for supporting different language requirements on an hp-ux system. See the man page for lang for starters.

Depending on the language of your users (and whether it is uniform or mixed across groups) you can install an appropriate locale (man lang) for the desired language and set the LANG environment variable. Then commands like login and passwd will pull their messages from the appropriate message catalogue (in /usr/lib/nls).
Zeev Schultz
Honored Contributor

Re: how to change login messages

Well you can also put whatever message you
like into file and do some cron stuff with
wall command,sending message in the file to
all logged users.

Zeev
So computers don't think yet. At least not chess computers. - Seymour Cray
Dario_1
Trusted Contributor

Re: how to change login messages

Hi!!!

/etc/issue or /etc/motd

Regards,

DR