public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Fernando Rodriguez <frodriguez.developer@outlook.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Re: How to poweroff the system from user?
Date: Tue, 31 Mar 2015 01:57:32 -0400	[thread overview]
Message-ID: <1887274.L0doMiab5F@navi> (raw)
In-Reply-To: <87pp7sqf0b.fsf@heimdali.yagibdah.de>

On Sunday, March 29, 2015 12:23:00 PM lee wrote:
> Philip Webb <purslow@ca.inter.net> writes:
> What's the last time you pressed Ctrl+Alt+Del and it actually worked?
> It's a legacy thing from times when freezes/crashes were common and when
> it did work and was useful.
> 
> Nowadays, when you're pressing it, usually nothing happens anyway
> because the machine is down to where you have to press the reset button
> or to turn off the power (if you can't log in with ssh).  When the
> machine still works, Ctrl+Alt+Del also works, which means that the
> default does nothing but create a security hole.

On Linux now there's the Magic SysRq Key feature for that. If enabled (I think 
it is by default, may be wrong) you can use ctrl-alt-sysrq plus one these keys 
even if your kernel panics or freezes in most cases (ctrl may only be needed 
from xorg):

r - to get the keyboard back so you can switch to VT if xorg freezes
e - to terminate all processes gracefully (SIGTERM) except pid 1
i - to terminate all processes forcefully (SIGKILL) except pid 1
s - to sync all filesystems 
u - to unmount them and remount readonly
b - to reboot

Easy to remember as "Reboot Even If System Utterly Broken"
There's a lot of other commands in the kernel docs sysrq.txt
 
> So how can we have this default changed?

Somebody posted that on this very thread. Replace the ctrlaltdel entry on 
inittab with /bin/false.

-- 
Fernando Rodriguez


  reply	other threads:[~2015-03-31  5:58 UTC|newest]

Thread overview: 93+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-21 19:26 [gentoo-user] How to poweroff the system from user? German
2015-03-21 19:34 ` Alexander Kapshuk
2015-03-21 19:35   ` Alexander Kapshuk
2015-03-21 22:38     ` Fernando Rodriguez
2015-03-21 22:52       ` Emanuele Rusconi
2015-03-21 23:03         ` Fernando Rodriguez
2015-03-21 19:39   ` German
2015-03-21 19:47     ` Rich Freeman
2015-03-21 19:58       ` Canek Peláez Valdés
2015-03-26  0:46         ` microcai
2015-03-29 11:55           ` Volker Armin Hemmann
2015-03-29 12:33             ` Jorge Almeida
2015-03-29 12:44               ` Rich Freeman
2015-03-21 20:01       ` German
2015-03-21 20:17         ` Jc García
2015-03-21 20:09 ` Fernando Rodriguez
2015-03-21 20:32 ` Philip Webb
2015-03-21 20:50   ` Rich Freeman
2015-03-21 20:58   ` German
2015-03-21 22:20     ` Jc García
2015-03-22 10:30       ` Peter Humphrey
2015-03-22 11:04         ` [gentoo-user] " Nikos Chantziaras
2015-03-22 11:27           ` Peter Humphrey
2015-03-22 15:58             ` Philip Webb
2015-03-22 19:13               ` Nikos Chantziaras
2015-03-22 20:12                 ` Philip Webb
2015-03-22 23:18                   ` Nikos Chantziaras
2015-03-22 21:13               ` Matti Nykyri
2015-03-29 10:23               ` lee
2015-03-31  5:57                 ` Fernando Rodriguez [this message]
2015-03-31  6:38                   ` Fernando Rodriguez
2015-03-31  9:36                   ` Tom H
2015-03-31  9:42                     ` Emanuele Rusconi
2015-03-31 17:13                       ` Tom H
2015-04-04 12:41                   ` lee
2015-04-04 15:16                     ` Rich Freeman
2015-04-07 20:10                       ` lee
2015-04-07 20:24                         ` lee
2015-04-04 22:36                     ` Fernando Rodriguez
2015-04-07 19:21                       ` lee
2015-04-07 20:43                         ` Fernando Rodriguez
2015-04-07 21:27                         ` Neil Bothwick
2015-04-08 21:47                           ` lee
2015-04-14 21:07                             ` Emanuele Rusconi
2015-04-14 22:06                               ` lee
2015-04-14 23:02                                 ` Neil Bothwick
2015-05-09 15:13                                   ` lee
2015-04-04 22:37                     ` Neil Bothwick
2015-04-05  7:27                       ` Dale
2015-04-05 11:24                         ` Rich Freeman
2015-04-05 15:13                           ` Dale
2015-03-22 20:36         ` [gentoo-user] " Jc García
2015-03-23  9:46           ` Peter Humphrey
2015-03-23 10:12             ` 回复:Re: " Nicol TAO
2015-03-23 11:28             ` Rich Freeman
2015-03-23 12:13             ` [gentoo-user] " Nikos Chantziaras
2015-03-23 12:16               ` Matti Nykyri
2015-03-23 13:32                 ` Nikos Chantziaras
2015-03-23 12:16             ` [gentoo-user] " Emanuele Rusconi
2015-03-29 10:43             ` lee
2015-03-29 23:20               ` Walter Dnes
2015-03-29 19:30                 ` Rich Freeman
2015-03-30  0:32                   ` Walter Dnes
2015-03-30  0:52                     ` Rich Freeman
2015-03-30  8:09                       ` Mick
2015-03-30  9:41                         ` Rich Freeman
2015-03-30  8:00                     ` Mick
2015-04-04 12:47                 ` lee
2015-03-21 22:51     ` Fernando Rodriguez
2015-03-22  6:32       ` German
2015-03-22  6:49         ` Matti Nykyri
2015-03-22  7:06           ` German
2015-03-22  7:11             ` Alexander Kapshuk
2015-03-22  7:22               ` Matti Nykyri
2015-03-22  7:19             ` Fernando Rodriguez
2015-03-22  7:30               ` German
2015-03-22  7:34                 ` Matti Nykyri
2015-03-22  7:35                 ` Fernando Rodriguez
2015-03-22  7:55                   ` German
2015-03-22  7:47                 ` Fernando Rodriguez
2015-03-22  7:57                   ` German
2015-03-23  1:39                 ` Walter Dnes
2015-03-22  7:31             ` Fernando Rodriguez
2015-03-22  7:35               ` Matti Nykyri
2015-03-22  7:55                 ` Fernando Rodriguez
2015-03-22  7:56                 ` German
2015-03-26  0:53         ` microcai
2015-03-26 15:36           ` Tom H
2015-03-22  7:41 ` [gentoo-user] " Nikos Chantziaras
2015-03-26  1:46 ` [gentoo-user] " wabenbau
2015-03-26 16:13 ` [gentoo-user] " Hans
2015-03-26 16:28   ` Francisco Ares
2015-03-26 19:02     ` Emanuele Rusconi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1887274.L0doMiab5F@navi \
    --to=frodriguez.developer@outlook.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox