root password

Ian Zimmerman
09 Oct 2004 00:28:39 -0700

Holt> Option 2 (naughty, ugly, and might mess up your system):

Holt> - use your boot loader to boot the kernel with its normal set of
Holt> arguments and append the string 'init=/bin/bash'.

Holt> - back up etc shadow (cp -p /etc/shadow /etc/shadow.bak)

Holt> - drop the following into /etc/shadow using cat: root::::::::

Holt> - run: sync;sync;sync;reboot -f

The middle two steps are more easily and safely accomplished by

mount -n -o remount,rw /
mount -n -o remount,ro /

"It's not true or not."  A reality show producer (real quote)