The last that comes into my mind is a small script or program that runs started by init and that kills all non-root (and possibly others) programs on the machine. It could be bound to ctrl-alt-del like the following (/etc/inittab):
Hmmmm. There goes multi-user... :-((
(I mean someone could have legitimate processes running wihtout terminal.)
Personally, I dislike the ctrl-alt-del thing. It seems to me that it should teach people that rebooting just like in old DOS times isn't really necessary any more and that there has been some progress since color TV was invented.
That's a good one to add to "quotable quotes" :-)
Volker
Hmmmm. There goes multi-user... :-((
(I mean someone could have legitimate processes running wihtout terminal.)
Those won't get killed. Only the ones running in background but with stdio on the terminal. People must use something like
/my/script < /dev/null > /dev/null 2>&1 &
to run a program in the background.
Try it out:
$ fuser `tty` /dev/pts/9: 1806 2845 2886 $ sleep 3 & fuser `tty` [1] 2887 /dev/pts/9: 1806 2845 2887 2889 $ [1]+ Done sleep 3 $ sleep 3 < /dev/null >/dev/null 2>&1 & fuser `tty` [1] 2890 /dev/pts/9: 1806 2845 2892 $ [1]+ Done sleep 3 </dev/null >/dev/null 2>&1 $
That's a good one to add to "quotable quotes" :-)
:-)
Volker
So long, Roman.