[plug] Root password

Craig Ringer craig at postnewspapers.com.au
Thu Nov 11 11:17:28 WST 2004


On Thu, 2004-11-11 at 07:47, Craig Foster wrote:
> Boot knoppix
> Mount hard disk partitions
> Text edit /etc/shadow on whichever volume it ends up on
> Look for root:$gdfgsdfg5445gsgsgs5sg:12581:0:99999:7:-1:-1:-1 or somehting
> like it, and remove the text $gdfg... Right up until the next ":"
> (now should look like "root::12581:0:99999:7:-1:-1:-1")
> Save and reboot

Alternately, chroot into your root partition then run 'passwd' to re-set
your password on the spot. Much less scary.

If you don't have a rescue cd:

  - Boot linux with the 'init=/bin/bash' argument, eg
    linux init=/bin/bash
  - You'll be dropped to a shell prompt. Run:
  - mount /proc
  - mount / -o rw,remount
  - passwd
  - mount / -o ro,remount
  - sync
  - reboot

--
Craig Ringer




More information about the plug mailing list