TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

You’re in the front of a Linux computer, you need a root access. What do you do?

8 pointsby jolenzyabout 12 years ago

8 comments

pifabout 12 years ago
If you find the LILO prompt instead of the GRUB screen, use the option "init=/bin/sh" instead.<p>As already pointed, this is not an attacking method, but just a recovery method. From the POV of security, getting physical access to the console is already bad.
评论 #5551561 未加载
评论 #5551897 未加载
jarydabout 12 years ago
This was how the RHCE (Red Hat Certified Engineer) exam begun when I took it a few years back...<p>However, instead of selecting "recovery mode" you had to edit the boot line and add a "s" for single user mode.
评论 #5551617 未加载
drinchevabout 12 years ago
If you have physical access to a Linux computer, then your options are unlimited. Manipulating grub could be one of it.<p>Things that come in my mind :<p>- Use USB Flash/CD to boot something else, mount the hard-drive and do some nasty stuff to passwd file.<p>- If you have your BIOS locked, you can simply remove the hard drive and use another box to do the same.<p>- If you got your BIOS locked with a password, you can simply remove the battery for 1-2 minutes and put it back!<p>- No access to the battery?! Remove the hard drive, boot from CD/usb key ( since there is no hard drive almost every BIOS will search for something to boot from ) and flash the BIOS :D<p>No system is secured if you have physical access to the hardware.
评论 #5551713 未加载
dpeduabout 12 years ago
Assuming there's no grub password set. And assuming you don't need a password to reboot it.
评论 #5551493 未加载
DanBCabout 12 years ago
If you're in front of an HP-UX machine you want 'single user mode'.<p>(<a href="http://www.cyberciti.biz/faq/hpux-booting-into-single-user-mode/" rel="nofollow">http://www.cyberciti.biz/faq/hpux-booting-into-single-user-m...</a>)
评论 #5551651 未加载
qwertaabout 12 years ago
My disk is encrypted. Bootloader, kernel and encryption keys are with me on USB flash. Good luck trying this approach.
评论 #5551910 未加载
joshguthrieabout 12 years ago
Nice, this is how we usually get (unauthorized) root access on our school's *NIX systems.
BrokenPipeabout 12 years ago
This is not HN material
评论 #5551603 未加载