WARNING: THE NEXT KEY COMBINATION WILL CRASH YOUR COMPUTER
Ok, I get that this is an administrative tool and all, but I realized that any user can do ALT + SysRq + C. This link explains what I'm talking about.
But only as root I can do something like echo c > /proc/sysrq-trigger
and have it actually crash the system.
If someone has physical access they can just plug in a keyboard and crash the computer (or server), but it would be even harder for them to get root privileges in a terminal, right? Is there a specific reason as to why it works as non-root from a keyboard but only as root from a console?
This is not what I'm looking for. It is talking about an issue with the Fn part on keyboards. It doesn't even allow you to do it with sudo
. You have to first su root
.
sudo
because the>/proc/sysrq-trigger
part of the command is outside the sudo command, thus the file is opened as you, not asroot
. – Darkhogg May 20 '14 at 01:01