1 |
On Sunday, March 29, 2015 12:23:00 PM lee wrote: |
2 |
> Philip Webb <purslow@××××××××.net> writes: |
3 |
> What's the last time you pressed Ctrl+Alt+Del and it actually worked? |
4 |
> It's a legacy thing from times when freezes/crashes were common and when |
5 |
> it did work and was useful. |
6 |
> |
7 |
> Nowadays, when you're pressing it, usually nothing happens anyway |
8 |
> because the machine is down to where you have to press the reset button |
9 |
> or to turn off the power (if you can't log in with ssh). When the |
10 |
> machine still works, Ctrl+Alt+Del also works, which means that the |
11 |
> default does nothing but create a security hole. |
12 |
|
13 |
On Linux now there's the Magic SysRq Key feature for that. If enabled (I think |
14 |
it is by default, may be wrong) you can use ctrl-alt-sysrq plus one these keys |
15 |
even if your kernel panics or freezes in most cases (ctrl may only be needed |
16 |
from xorg): |
17 |
|
18 |
r - to get the keyboard back so you can switch to VT if xorg freezes |
19 |
e - to terminate all processes gracefully (SIGTERM) except pid 1 |
20 |
i - to terminate all processes forcefully (SIGKILL) except pid 1 |
21 |
s - to sync all filesystems |
22 |
u - to unmount them and remount readonly |
23 |
b - to reboot |
24 |
|
25 |
Easy to remember as "Reboot Even If System Utterly Broken" |
26 |
There's a lot of other commands in the kernel docs sysrq.txt |
27 |
|
28 |
> So how can we have this default changed? |
29 |
|
30 |
Somebody posted that on this very thread. Replace the ctrlaltdel entry on |
31 |
inittab with /bin/false. |
32 |
|
33 |
-- |
34 |
Fernando Rodriguez |