PASSIVE
|^^^^^^^^^^| | |
| | | TERMINAL |
| TERMINAL | | |
| | | |
-----------\ ------------
// \ --tty14---| |
__________________ \ | _______________________
/ - - - - - / | | \ - - - - - - - - \
/_________________/ | | _____________________\
| |
-------------------------
---------Terminal
COMPUTER
\\
ACTIVE
|^^^^^^^^^^| | |
| | | TERMINAL |
| TERMINAL | | |
| | | |
-----------\ ------------
// \ --tty14---| |
__________________ \ | _______________________
/ - - - - - / | | \ - - - - - - - - \
/_________________/ | | _____________________\
| |
-------------------------
---------Terminal
COMPUTER
\\
BOTCLEAN
LNEXT
UTERMINAL
TERMINAL
NEXT
$V1$
HILINE
PAUSE
q - to quit, <CR> - to continue
GO
If a terminal port has the getty process running on it, then you
cannot use this port for calling another system. To be able to
call another system, the login process must be disabled on
that port.
The process of disabling the login process on the port is the
inverse of enabling the login process on the port, i.e.,
stopping the getty process.
Assuming that the port to be disabled has the id tty14,
the process for deactivating getty on that port
through software involves two steps:
0mtty14
/etc/getty tty14 9600
2 - Having the init process read the /etc/ttys file,
2 - Having the init process read the /etc/inittab file,
thus deactivating the getty process for the port!
1mtty10
/etc/getty tty10 9600
1mtty11
/etc/getty tty11 9600
0itty12
/etc/getty tty12 9600
1itty13
/etc/getty tty13 9600
1mtty14
/etc/getty tty14 9600
/etc/ttys file
/etc/inittab file
You may use an editor to change the /etc/ttys entry to 0mtty14.
Causing the init process to read this entry is done by having a
user login to another active port, by using kill -2 1 command,
or of course by rebooting the system!
You may use an editor to change the /etc/inittab entry to
2:off:respawn:/etc/getty tty14 9600. Causing the init process
to read this entry is done by having a user login to another active
port, by using kill -1 1 command, or of course by rebooting the system!
A much easier approach to deactivate a port is by using the disable
command, whose syntax is: disable tty
where tty is the terminal id.
At the prompt, please type the
command that you would normally
use to deactivate the port whose
id is /dev/tty14.
$PROMPT$
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please type disable /dev/tty14
Please type disable /dev/tty14
You will be helped this time.
FORGET1
$PROMPT$disable /dev/tty14
Observe the result on the terminal:
/etc/ttys updated
/etc/inittab updated
$PROMPT$
1mtty10
/etc/getty tty10 9600
1mtty11
/etc/getty tty11 9600
0itty12
/etc/getty tty12 9600
1itty13
/etc/getty tty13 9600
0mtty14
/etc/getty tty14 9600
/etc/ttys file
/etc/inittab file
If the port with the id /dev/tty14
is to have a 1200 baud modem for
dialing out connected to it, then
you'd have to change the baud rate
field to i (i = 1200 baud).
At the : prompt, please type the
entry that you would normally
place in your /etc/ttys file,
place in your /etc/inittab file,
to keep the port with id /dev/tty14
as dialing-out port with 1200 baud.
:
That is correct!
You've got it on the 2nd try.
Good, you understand the concept.
Please use baud rate i
for tty14
Please type 0itty14
Please type
off:/etc/getty tty14 9600
Please type
off:/etc/getty tty14 9600
You will be helped this time.
FORGET2
Please observe the result above.
/etc/getty tty14 9600
$PROMPT$0itty14
0itty14
/etc/getty tty14 9600
$PROMPT$