Operating System - HP-UX
1834152 Members
2338 Online
110064 Solutions
New Discussion

Re: Include message at CDE login GUI

 
SOLVED
Go to solution
James M. Easterling
Occasional Contributor

Include message at CDE login GUI

Hi,

I am running HP-UX 11.0. Before a user can login the CDE GUI, I would like them to read a warning message. I have a text file that I would like to post above or within the CDE login widget.

Hence, I want the user to get a message before they login not after they login. Any suggestions would be welcomed.

Regards
6 REPLIES 6
Pete Randall
Outstanding Contributor
Solution

Re: Include message at CDE login GUI

Hi James,

I think you'll find some good suggestions in this thread:
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xa4d291ccb36bd611abdb0090277a778c,00.html

Pete

Pete
Kellogg Unix Team
Trusted Contributor

Re: Include message at CDE login GUI

Hi James,

Copy /usr/dt/config/C/Xresources to /etc/dt/config/C directory. Modify the line containing "greeting.labelString" string to your requirement and remove "!!" to uncomment them.

On the console, chooseOptions -> Reset Login Screen. You should see your changed greetings now.

HTH
...Manjeet
work is fun ! (my manager is standing behind me!!)
James M. Easterling
Occasional Contributor

Re: Include message at CDE login GUI

Pete,

I did find a suggestion via the link you gave me for what I want to do. Again, I am trying to give a security message prior to login. I am looking to change the appearance of my CDE login screen.

Actually Pete within the link you gave me, you gave a post that you gave back on May 23 2002, you suggested editing the /etc/issue file to include a security login message within quotes. That is exactly what I want to do. However, it didn't work.

Regards
James M. Easterling
Occasional Contributor

Re: Include message at CDE login GUI

HTH,

Would you suggest that edito for more than a line of text? I would like to have about a paragraph of text. Actually, I am trying to display a security message prior to login at the CDE login screen.

Regards+
Kellogg Unix Team
Trusted Contributor

Re: Include message at CDE login GUI

I don't think you can put a whole paragraph there! You have to convince your auditors to put a shorter text there ! :-)

Something like -
Unauthorized Use is Prohibited. Your activities will be monitored!

...Manjeet
work is fun ! (my manager is standing behind me!!)
Alex Glennie
Honored Contributor

Re: Include message at CDE login GUI

To configure CDE to display a login message:


Create a 0020.message file in the /etc/dt/config/Xsession.d/ directory.


Add the following lines to this new /etc/dt/config/Xsession.d/0020.message file:


#!/usr/bin/ksh
dtstart_hello[0]="/usr/dt/bin/dthello -file /etc/dt_message &"Make the file executable:

chmod 555 /etc/dt/config/Xsession.d/0020.message

For the earlier mentioned Xresource file route you should be able to compose a large text section youl need to set new lines eg :

Dtlogin*greeting.labelString: Welcome to %LocalHost%\n\New text to be entrerd ....\n\ ==============\n\ etc ...
and you may need to increase your matte see Xresources file .... ?