4 ms·
I wonder why microsoft never implemented the Magic SysRq keys like linux: https://en.wikipedia.org/wiki/Magic_SysRq_key https://en.wikipedia.org/wiki/Magic_SysR
by malfist 4y ago
I wonder why microsoft never implemented the Magic SysRq keys like linux: https://en.wikipedia.org/wiki/Magic_SysRq_key https://en.wikipedia.org/wiki/Magic_SysRq_key
It'd let you safely shutdown when the computer is locked up otherwise.
- kllrnohj 4y agoThe times my Linux installs have locked up, those keys never worked.
- malfist 4y agoThey always worked for me, but it's been a long time since linux has locked up on me.
- pengaru 4y agoThey may be disabled by distros to enhance security against physical access attacks. It can also be challenging to actually input a magic-sysrq combo on many modern keyboards where sysrq isn't its own key, if it's labeled at all as some Fn-key contortion.
- nyanpasu64 4y agoPersonally I value being able to trigger oomkiller early when a process is eating up RAM, and being able to SIGKILL kwin_x11 on Nvidia or whatever other process is wedging Linux shutdown, instead of waiting multiple minutes for systemd to give up waiting and SIGKILL it directly. In terms of physical access attacks, it's just as viable and far more powerful to add a keylogger to my keyboard or Linux distro, or pull and image my hard drive, than to gasp kill processes or sync filesystem data to disk, oh the horror!
- pengaru 4y agoWRT the physical security argument in favor of disabling sysrq, my assumption is it's more aimed towards defeating quick-n-dirty mischief style abuse. Ages ago I worked with a small team of young sysadmins who would often cause trouble for one another abusing things like sysrq, or poorly configured XFree86 instances without DontZap enabled (ctrl-alt-backspace termination, to a shell when startx/xinit is being used). Most of the time nothing malicious was actually done. But when you return to your screen-locked X desktop to find a fullscreen VC with a root shell blinking back at you and an empty history, guess what you'll at least have on the back of your mind for the rest of the workday?
- sebazzz 4y agoFrom what I recall it needs to be enabled (or not be disabled) when the kernel is compiled and in some cases a flag must be put on the kernel command line while booting.
- notriddle 4y agoThat's what Ctrl-Alt-Del is for. They aren't exactly the same thing, I suppose, but there's enough functional overlap that if you already have one, it's hard to justify adding another. You don't want too many of these "escape sequences", because every kernel-side keyboard interrupt becomes a thing that: * Userland doesn't get to use that keyboard shortcut any more. * Someone might accidentally trigger, and if they don't know what's going on, they become stuck. * It's another thing that anyone building a captive kiosk has to know how to disable.
- picsao 4y ago