Proper procedure for AUTOLOGIN in SCO

RICHARD RONTELTAP richard at neabbs.UUCP
Thu Mar 9 02:08:32 AEST 1989


[ AUTO in XENIX gettydefs ]
 
I can think of two ways for secure AUTO usage. (We use it to start up
our BBS software)
 
1 -
Let the login come up in RAW mode. In stead of editing gettydefs so
that SANE mode is set (move stuff to the second field), keep it in RAW
mode. Set up your .profile (or .cshrc) so that interrupt signals are
trapped or ignored before you go to SANE with stty, and start up your
'safe' software. (In our case, the BBS)
 
2 -
Let the AUTO user log in to a restricted shell (rsh). The restricted
shell will terminate immediately on receipt of the interrupt
character.
 
A minor annoyance of this method is, when you start a shell from your
own software, it is still restricted. To circumvent this, make a small
C program that sets the environment variable SHELL to "/bin/sh", and
*subsequently* starts up "/bin/sh".
 
Richard
(...!mcvax!neabbs!richard)



More information about the Comp.unix.xenix mailing list