need to get past login passwords

April 17, 2011 at 20:56:41
Specs: linux
hey i swapped hard drives and the new (used) drive i got has linux installed and a bunch of different users that i dont know the passwords too. is there anyway to get past the login passwords?

See More: need to get past login passwords

Report •

#1
April 18, 2011 at 02:26:36
Yes, although the exact details will depend on the distro. Generally speaking, most distros these days use GRUB. You can access the GRUB boot menu by pressing Esc or Shift (it depends on the version of GRUB, so try both if one doesn't work) before Linux loads. Select a boot entry and press the 'e' key. Scroll down with your cursor and find a line starting with kernel and add init=/bin/bash. This should drop you immediately to a root shell. The first step you'll want to do is change the root password, with the command passwd. You can then add new users or change the passwords of existing ones with the command passwd username. The command to create users varies by distro, but is usually something like useradd or adduser.

http://ss64.com/bash/useradd.html


Report •
Related Solutions


Ask Question