Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdcad!sun!pitstop!sundc!seismo!uunet!mcvax!hp4nl!telmail!neabbs!richard From: richard@neabbs.UUCP (RICHARD RONTELTAP) Newsgroups: comp.unix.xenix Subject: Re: Proper procedure for AUTOLOGIN in SCO Message-ID: <112564@neabbs.UUCP> Date: 8 Mar 89 16:08:32 GMT Organization: NEABBS multi-line BBS +31-20-717666 (13x), Amsterdam, Holland Lines: 24 [ 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)