Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uflorida!stat!sun13!prism!gt0178a From: gt0178a@prism.gatech.EDU (BURNS,JIM) Newsgroups: comp.unix.questions Subject: Re: help sought - securing a terminal/line Message-ID: <12432@hydra.gatech.EDU> Date: 11 Aug 90 01:20:33 GMT References: <2103.26bf3e39@miavx1.acs.muohio.edu> Organization: Georgia Institute of Technology Lines: 26 in article <2103.26bf3e39@miavx1.acs.muohio.edu>, pemurray@miavx1.acs.muohio.edu (Peter Murray) says: > In article <1990Aug7.111611.434@warwick.ac.uk>, cudcv@warwick.ac.uk (Rob McMahon) writes: >> Assuming we're talking BSD here (that certainly looks like a 4.3 /etc/ttys >> file to me ...), can't you just use the `lo' gettytab entry for this: >> lo str /usr/bin/login program to exec when name obtained > Yes, I'm dealing with BSD (Ultrix, to be exact). Umm, the original poster (Tony Rhodes?) specifically asked for an HP-UX solution. In that case, altho' /etc/ttys exists, /etc/inittab would be the most appropriate solution since it avoids getty clones, and allows you to automatically respawn the app. [Oracle, etc.] if it aborts. One possible disadvantage is stty settings may not be correct if getty/login don't run first. (I've been bit by this on HP-UX.) However, since the original poster mentioned the need for several different Oracle apps., this could be handled by embedding the appropriate command tail option in a script that also runs stty (, and probably should also do something like 'trap "exit" 2 3' to prevent breaking out before Oracle starts - the inittab respawn will then restart it). At a minimum on HP-UX, you will need to do an 'stty icrnl ocrnl ixon'. One more point - as of HP-UX 7.0 (6.5?) if you need to do a set[gu]id on the script, the first line MUST be '#!/bin/ksh' (or what ever shell you want). -- BURNS,JIM Georgia Institute of Technology, Box 30178, Atlanta Georgia, 30332 uucp: ...!{decvax,hplabs,ncar,purdue,rutgers}!gatech!prism!gt0178a Internet: gt0178a@prism.gatech.edu