Operating System - HP-UX
1834625 Members
2821 Online
110069 Solutions
New Discussion

Re: Bypass dtlogin/dtgreet; start user desktop app on boot.

 
SOLVED
Go to solution
Mike Nemeth
Advisor

Bypass dtlogin/dtgreet; start user desktop app on boot.

I've a application that runs from a highly
customized cde desktop. What the developers
want now is to start this desktop and main
application when the work station is
booted. That is the user will not have to login.
Can this be done and how?
2 REPLIES 2
Alex Glennie
Honored Contributor
Solution

Re: Bypass dtlogin/dtgreet; start user desktop app on boot.

see your /usr/dt/config/Xaccess file it provides a means for selected X terminals to
bypass the usual dtgreet screen and automatically login as a specified user without requesting a password.

To enable this behavior, after the name of the display host you must specify the
string "BYPASS_LOGIN" followed by the name of the user under
which to log in.

eg:

# The terminals listed below will be logged in as the user
# specified without a dtgreet screen and with no password required.

hpwina24 BYPASS_LOGIN xtadm # terminal "hpwina24" logs
# in as user "xtadm"

Be aware use of this feature can compromise the security of your system. Is not supported or documented for CDE but may work ... it's a left over from VUE and I beleive gnome may offer similar functionality ...
H.Merijn Brand (procura
Honored Contributor

Re: Bypass dtlogin/dtgreet; start user desktop app on boot.

Some additional points

- there is a bug in dtsession when using the BYPASS feature: the group ID is *always* set to root :(

The solution is simple, and though I have told HP about two years ago, they said not to implement it, because they claim this feature to be depricated. I disagree, because it still works, but opens a security hole the size of the crater of the Etna.

# cd /usr/dt/bin
# cat dtsession-wrap.c
#include

int main (argc, argv)
int argc;
char *argv[];
{
setgid ((getpwuid (getuid ()))->pw_gid);
return (execv ("/usr/dt/bin/dtsession.exe", argv));
} /* main */
# mv dtsession dtsessio.exe
# cc -s -o dtsession dtsession-wrap.c
# chown root dtsession
# chmod 4511 dtsession



To remove those annoying blue hello/greet screens, just comment out or remove these lines in Xsession:

552d536
< StartFirst xdmstart_hello # start xdm hello client
555,559d538
< if [ -n "$INFO_PATH" ]; then
< StartFirst dtstart_hello_info # start desktop hello client
< else
< StartFirst dtstart_hello # start desktop hello client
< fi
Enjoy, Have FUN! H.Merijn