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

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9241.0. "Powerup auto login as root" by SWAM1::POIANI_MI () Thu Mar 20 1997 16:26

    I have a customer running v 3.2g of DU with CDE running. They will be
    upgrading to v4.0b with CDE.
    
    Get this. They want to power up the workstation and have it come up
    logged into a CDE session as root. I have the workstation booting on
    Powerup, the problem is that they want to bypass all means of security
    and have root login automatically to a windows session. They say it's a 
    locked room, and this is necessary.
    
    
    Any Ideas/cross posted in CDE notes conference.
    
T.RTitleUserPersonal
Name
DateLines
9241.1UNXA::BEUTENo good deed ever goes unpunished...Tue Mar 25 1997 16:4047
	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