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