To view parent comment, click here.
To read all comments associated with this story, please click here.
> ever tried pressing ctrl+c? you'd probably have a
> hard time writing a fake console login manager
> that that wouldn't kill...
Not at all. Ctrl-C is easily trapped. I can even trap Ctrl-C from a shell script. Don't even even need C to do that. And no, I don't need to be root to trap Ctrl-C.
The only signal I can't trap is SIGKILL. All other signals can be trapped. And you don't need to be root to do so.
@24.118.179.---
So you say Ctrl+C is trappable, what about Ctrl+Alt+Backspace, which logs the user out of their current session? If one were really paranoid they could do that before every Linux login.
I don't see how touting Ctrl+Alt+Del from Windows is all that great, it's just pressing extra keystrokes, which I believe Ctrl+Alt+Backspace will replicate fine on Linux. Let me know if it is trappable though.
> ever tried pressing ctrl+c? you'd probably have a
> hard time writing a fake console login manager
> that that wouldn't kill...
And just to prove it to you,
Try running this shell script:
#!/bin/sh
trap noctrlc 2
noctrlc()
{
echo "You can't get out of here with Ctrl-C"
}
read foo






Member since:
2005-12-04
ever tried pressing ctrl+c? you'd probably have a hard time writing a fake console login manager that that wouldn't kill... and ctrl+alt+backspace would take care of any x-based ones...