jon_hogan-doran@713.602@fidogate.fido.oz (Jon Hogan-doran) (03/22/89)
To by pass login in XENIX :
copy e.g "2" -1200 entry in /etc/gettydefs , and create a unique letter e.g
"n" or number "x". Place # AUTO at the end. Then enable the terminal you
want to auto-login by setting it second letter to the entry you devised.
e.g 12tty1a -> 1ntty1a. now here comes the tricky bit !
Xenix will use for the argument for the login the name of the tty device
ie. login: _tty1a_ . So you can either create a new login in you /etc/passwd
or , as i do , disable tty1a , link /dev/tty1a to /dev/bbs (WARNING! don't
link it to /dev/root - that already exists and is the root filesystem.) then
add "0nbbs" to /etc/ttys , then enable it. The termianl will then login !
But not everythings alright - the /etc/motd is all funny ? Whats wrong ?
Well the gettydef entry contains to sets of "stty" settings :
2 # hupcl CS8 PARENB # HUPCL CS8 HUPCL INITB MTS SANE # @login/r/n # AUTO #
|---- initial --| |--- post login in settings ---| |see NB |
NB - AUTO comes either before the next referenc : .. # AUTO # 3 or the
other way around.
When using auto login "login(C)" doesn't reset the stty with the postlogin
settings , thus only the initial ones are set. Just move the post setting
into the first block
2 # HUPCL CS8 PARENB INITB MTS SANE # HUPCL .....
That should work fine.
p.s use getty -c getty_def_file to check that you entries alright (| more)
[JON] Hogan-Doran
2 2 2 3 3
Question : if ( x + 1/x ) = 7 , what x + 1/x = ?
========================================================
--- Zeta
* Origin: Zeta: Unix, Minix, Xenix support (02) 627-4177 (3:713/602)