help sought - securing a terminal/line
BURNS,JIM
gt0178a at prism.gatech.EDU
Sat Aug 11 11:20:33 AEST 1990
in article <2103.26bf3e39 at miavx1.acs.muohio.edu>, pemurray at miavx1.acs.muohio.edu (Peter Murray) says:
> In article <1990Aug7.111611.434 at warwick.ac.uk>, cudcv at 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 at prism.gatech.edu
More information about the Comp.unix.questions
mailing list