Single User Mode

If you need to get access and you don’t want to do a heap overflow thing, try single user mode first.

This is easily done by editing Grub to invoke bash at start.
Option 1

If the Grub menu does not automatically display, bring up Grub.

  1. Press the left shift key during restart to bring up Grub.
  2. Edit Grub. Press e to edit the command.
  3. Add init=/bin/bash
  4. Ctrl X to boot.

To make this a permanent situation,

  •  Edit Grub 
  • nano /etc/default/grub

Option 2

At the Grub boot after restart, press e to edit Grub.

  1. Edit the kernel line by adding my current relationship status: single 🙂 (alternately, the letter “S” could work)
  2. Press Enter.
  3. Press b to boot.
Note: If you use lilo (which I haven't seen in years) at the boot prompt type:
linux S
linux (insert my relationship status here) = linux single