[Next] [Previous] [Up] [Top] [Contents]

9.1.3 Files that control terminal logins

9.1.3.1 ttytab

The entries in /etc/ttytab are used to turn ports on/off and denotes them as being secure or unsecure for root login. The entry also specifies the program to run, usually getty with the corresponding entry in /etc/gettytab to control the login, and expected terminal type, which must match an entry in /etc/termcap, e.g.

# name getty type status comments

console "/usr/etc/getty std.9600" sun on local secure

ttya "/usr/etc/getty std.9600" unknown off local unsecure

ttyb "/usr/etc/getty std.9600" unknown off remote unsecure

The file ttys is derived from ttytab by init, and should not be edited.

12console

02ttya

02ttyb

For Ultrix ttys is more like ttytab in SunOS 4.1.X, and there is no ttytab.

Should you modify ttytab you will need to interrupt init to get it to reread this file. This can be done with the kill command:

# kill -HUP 1

where the -HUP (or -1) option (hangup) interrupts, but doesn't kill init.


Unix System Administration - 8 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]