> I don't have his answer, but login can stop root logins. > > See ttys(5) and the getttyent(3) manual pages. > > If the entry has "insecure" then the ty_status gains TTY_SECURE. And this
I worded that wrong. If it has "secure" it gains TTY_SECURE. (If "insecure" it turns off the TTY_SECURE bit.) This is in src/lib/libc/gen/getttyent.c. > is checked in the rootterm() function in src/usr.bin/login/login.c by > using getttynam(3).
