Re: Linux login security approaches

Krzysztof Halasa (khc@intrepid.pm.waw.pl)
09 Dec 1998 22:02:57 +0100


Neil Conway <nconway.list@ukaea.org.uk> writes:

> Linux needs some sort of "SAK" - someone else pointed out that it's
> already doable with serial lines. How about with X? Does one simply do
> "C-A-Backspace"?
>
> How are people dealing with this at present?

At the console, you can press alt-sysrq-k - SAK.
At X console, killing Xserver with ctrl-alt-bs will do.
Using telnet/ssh/etc you don't have this problem at all.

However you can't do that when using dial-up connection - previous
user can easily set CLOCAL flag on /dev/ttyS* and have a trojan
get your login/password when you call.

The solution here is to make the dial-in user unable to change this
tty flag (and possibly other ones) - I believe getty using
TIOCSLCKTRMIOS/TIOCGLCKTRMIOS should be enough.

Looks like it's a userspace problem.

-- 
Krzysztof Halasa
Network Administrator of The Palace of Youth in Warsaw

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/