[comp.sys.att] f

arubin@spies.UUCP (Andy Rubin) (04/19/88)

Can someone please tell me how to enable/disbale getty on tty000 on
the PC 7300?  Thanks!

-- 
Spies in the Wire PUBLIC ACCESS UNIX  |  {allegra|ames|cmcl2|ihnp4|linus|uunet|
Mount Kisco, New York                 |     rutgers|gatech|mcnc|cbosgd|sdcsvax|
                                      |            decvax}!philabs!spies!arubin
(914) 666-3997 300/1200 8N1           |                     <arubin@spies.UUCP>

emm@thezone.UUCP (Edward M. Markowski) (04/20/88)

The way to enable/disable the getty on tty000, is to modify the /etc/inittab
file. Be VERY careful when doing this, the inittab file is used during
bootup and when users logout. If the inittab file is haphazardly changed
the system might not work correctly. If you have the manual read the 
entry about init( 1M ) and inittab( 4 ).


Edward M. Markowski
UUCP:   rutgers!rochester!kodak!gizzmo!lazlo!thezone!emm
BITNET: EMM1694@RITVAX

pjc@pcbox.UUCP (Paul J. Condie) (04/21/88)

In article <11@thezone.UUCP> emm@thezone.UUCP (Edward M. Markowski) writes:
>
>
>The way to enable/disable the getty on tty000, is to modify the /etc/inittab
>file. Be VERY careful when doing this, the inittab file is used during
>bootup and when users logout. If the inittab file is haphazardly changed
>the system might not work correctly. If you have the manual read the 
>entry about init( 1M ) and inittab( 4 ).
>

why not just do a "setgetty 000 1"
where:
000 = tty000
1 = turn getty on

"setgetty 000 0"
turns it back off

wtm@neoucom.UUCP (Bill Mayhew) (04/22/88)

1.  Edit /etc/inittab.  There should be a line for the tty000 getty
someplace near the end.  Make sure the line starts with a :.  Init
ingores any lines in inittab that have zero length first fields.
Of course, colon is the field separator.  To reenable the getty,
simply, change the colon to a space.  (This is what the user agent
brain-dead stuff does.)

2.  Then do a "ps -fe" and note the PID of the getty and kill it.
If/when you reenable the getty by putting the space in, you'll need
to do a "telinit Q", whcih sends a signal to init (PID 1), and
cause init to reread /etc/inittab for whatever run level you happen
to be in.

For a good reference on this mumbo-jumbo take a peek at "tutorial"
in the May '88 issue of Unix World.  It is a pretty good article.

As far as I know, there is no un-messy way to do it.  Getoff.sh
seems to only be effective for knocking out the getty on the internal
modem.  Oh well.

OF COURSE, AT&T COULD LET US GET HONEY DANBER, RIGHT?

--Bill