Rooting a local box

Stuart Jansen sjansen at buscaluz.org
Thu Apr 26 12:16:15 MDT 2007


On Thu, 2007-04-26 at 12:03 -0600, Nicholas Leippe wrote:
> On some distros, even single user asks for the root password. You can get past 
> that by passing init=/bin/sh to the kernel. If you have /bin/bb, even better. 
> Where to go from there is left as an exercise for the reader.

Using init=/bin/sh on modern systems with udev, etc. is not for the
faint of heart. If your distro requires the root password to enter
single user mode, it'd probably be easier to just boot from a rescue
disk. SUSE is an example of an annoying[1] distro that requires the root
password for single user mode, but in compensation the SUSE rescue disk
is kinda snazzy.

[1] If you have enough access to reboot into single user mode, you've
got enough access to boot from alternative media or pull the drives.
Requiring the root password doesn't do much to improve security.

-- 
Stuart Jansen              e-mail/jabber: sjansen at buscaluz.org
                           google talk:   stuart.jansen at gmail.com

"However beautiful the strategy, you should occasionally look at 
the results." -- Winston Churchill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://plug.org/pipermail/plug/attachments/20070426/51d26ac0/attachment.bin 


More information about the PLUG mailing list