1836762 Members
2717 Online
110109 Solutions
New Discussion

dtlogin Message dialogue

 
SOLVED
Go to solution
Greg Crocker_1
Occasional Contributor

dtlogin Message dialogue

I am setting up an HP-UX machine which must have a disclaimer shown to the user before the login can begin. Unfortunately, the disclaimer is quite large, at about 1800 bytes it fills the entire terminal window when displayed. I have placed the disclaimer in the /etc/issue file and now that message is displayed to all users who connect via telnet (this is on a closed network and ssh it not needed).

I would like to know how to display this same disclaimer in the dialogue provided by dtlogin. I have tried editing the /etc/dt/config/Xconfig file and I was not able to get Dtlogin*labelString to work. If this is not possible I would like to prevent dtlogin from starting until the user has indicated the he/she had read the disclaimer (pressing Enter, etc). It would be preferred that the machine would still boot to X as I have not found a way for normal users to start the X server. If this is possible that would be a solution as well.

Thanks in advance!

Greg
5 REPLIES 5
Zafar A. Mohammed_1
Trusted Contributor

Re: dtlogin Message dialogue

Greg Crocker_1
Occasional Contributor

Re: dtlogin Message dialogue

What I am looking for is a way to display a message box containing my disclaimer to the user (and force the user to achnowledge the message box) before the user is allowed to log into X.

An alternate solution would be to allow the users to start X themselves, but when I try to launch dtlogin (or the S990dtlogin.rc) script, I get an error about not being root.
Jeroen Peereboom
Honored Contributor

Re: dtlogin Message dialogue

Mark Grant
Honored Contributor

Re: dtlogin Message dialogue

I have done this a long time ago. It all got a bit funky but it worked well.

You need to decide how you are going to display this Disclaimer, probably using "xmessage" or something and put the command in the Xstartup file which I think is in /usr/dt/config/Xstartup. This file gets executed before the login box appears.
Never preceed any demonstration with anything more predictive than "watch this"
Rick Beldin
HPE Pro
Solution

Re: dtlogin Message dialogue

dtgreet will display the contents of /etc/copyright. You could modify this file and it would be displayed in the blue screen that immediately follows successful login.

You can also change the 'welcome' message by copying the file /usr/dt/config/Xresources to /etc/dt/config and making changes to the resources:

Dtlogin*greeting.labelString

A trusted system environment also adds last successful and unsuccessful loging to the copyright screen.,
Necessary questions: Why? What? How? When?