[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference unxa::cde

Title:CDE on Digital UNIXonment - CDE
Notice:CDE on Digital UNIX - for CDE on VMS, please see Note 1.3
Moderator:UNXA::SYSTEM
Created:Tue Nov 23 1993
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:660
Total number of notes:2674

624.0. "Auto loggin " by SWAM1::POIANI_MI () Thu Mar 20 1997 12:12

    I have a customer running Digital UNix 3.2G with CDE turned on. They
    would like to have digital UNIX automatically log them in when they
    reboot. 
    
    They will also be upgrading to 4.0b with CDE so this should work for
    both, and yes they are aware of the major security problems with this
    as they want to login as root. They are using a locked door for
    security and the machine is not on the net.
    
    Mike P.
T.RTitleUserPersonal
Name
DateLines
624.1UNXA::BEUTENo good deed ever goes unpunished...Tue Mar 25 1997 16:3953
       <<< TURRIS::DISK$NOTES_PACK2:[NOTES$LIBRARY]DIGITAL_UNIX.NOTE;1 >>>
                               -< DIGITAL UNIX >-
================================================================================
Note 9241.1                Powerup auto login as root                     1 of 1
UNXA::BEUTE "No good deed ever goes unpunished..."   47 lines  25-MAR-1997 16:40
--------------------------------------------------------------------------------

	For some background reading, take a look at the response in 6937.5
	in this conference. That explained how to do it for a V3.2 
	DECwindows environment.

	The approach for CDE is similar - replace the startup/stop
	scripts in /sbin/rc3.d with customized versions. The problem is
	that CDE rather heavily depends upon cleanly coming through 
	the dtlogin process to set up environment variables, so that
	more work is needed.

	I've played around with this on a V4.0 system - I no longer have
	easy access to a V3.2 system. This appears to work for the most
	part. It could use some cleanup, and should be made to do something
	more clever if the user logs out of CDE, but it's a proof of
	concept.

	Rename the existing /sbin/rc3.d/S95xlogin script on a V4.0x system
	and create another script (e.g., S95noxlogin) with the following:

#!/bin/sh
DISPLAY=war.unx.dec.com:0.0         # replace with your system name
export DISPLAY
/usr/bin/X11/X -ac -errorFile /var/dt/Xerrors &
PATH=/sbin:/usr/sbin:/usr/bin:/usr/ccs/bin:/usr/bin/X11:/usr/local
export PATH
HOME=/
export HOME
LOGNAME=root
export LOGNAME
SHELL=/bin/sh
export SHELL
TERM=vt100
export TERM
USER=root
export USER
SESSIONTYPE=dt
export SESSIONTYPE
LANG=C
export LANG
DTXSERVERLOCATION=local
export DTXSERVERLOCATION
/var/X11/xdm/Xsetup_0
/usr/bin/X11/xset fp+ /usr/dt/config/xfonts/C
/usr/dt/bin/Xsession