Operating System - HP-UX
1825643 Members
3717 Online
109685 Solutions
New Discussion

CDE - how to change/disable "Please enter...." message

 
Mark Bridgett
Occasional Advisor

CDE - how to change/disable "Please enter...." message

The newer versions of CDE now display two messages I would like to disable, but I can't work out how to.

These are:

1) The Regular/Failsafe message.

2) The please enter your user name message.

If they can't be removed can they be modified?

TIA
Mark
Think first, beer later.
3 REPLIES 3
Alex Glennie
Honored Contributor

Re: CDE - how to change/disable "Please enter...." message

this is interesting in terms of a problem i was otherwise unaware of :

at the CDE login menu, select session, gets failsafe
session and regular desktop as oppose to what help documenation
says. Help documentation states that we have option of going either to
Home session or Current session from login.



There is no Home or Current session option available at login time as
Help Documentation states.


How come it won't work as documented ? mmmmm

Anyway I dont think there are any resources available that would allow you to grey out those
options in the login banner (This could be undesirable if they do not
have remote access if CDE is not working correctly).

Instead will have to allow them to attempt the other login types and
force the user back out to the login banner.

Put the following at the beginning of /etc/profile:
if [ "$(id -nu)" != "root" -a "$(tty)" = "/dev/console" ]
then
echo Console Login not allowed for this user. Wait for desktop login.
sleep 3
exit 1
fi

Copy /usr/dt/config/Xfailsafe to /etc/dt/config/Xfailsafe the file does
not already exsist. Add the following to the beginning of the script:
if [ $USER != root ]
then
/usr/dt/bin/dterror.ds 'Failsafe Not Available' 'Access Denied' 'Continue';
exit 1
fi

The actual text & logo etc is normally configured in /etc/dt/config/C/Xresources not /usr/dt/config/...

as to the other problem I beleive CDE labs are working on it and have a work-around if needed.

As to the user name prompt I think its part of dtgreet (see man page) and is a binary in /us/dt/bin and hence not customisable .... it's a guess though !
Alexander M. Ermes
Honored Contributor

Re: CDE - how to change/disable "Please enter...." message

Hi there.
Perhaps a look at the dtlogin manpages
could help you.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Mark Bridgett
Occasional Advisor

Re: CDE - how to change/disable "Please enter...." message

The info posted so far is interesting, but I was really looking not to disable functionality but rather to have an aesthetically pleasing login screen (the Regular Desktop message means nothing to the majority of users). Additionally the word "Please" in a login prompt can be interpreted as an invitation for someone to attempt to hack a system (really!).

The message does appear to be in one of the binaries so I think the answer it basically that I can't do what I want.

All the best
Mark
Think first, beer later.