1 |
On Mon, Mar 24, 2008 at 5:30 PM, Grant <emailgrant@×××××.com> wrote: |
2 |
|
3 |
> I've revived an old Gentoo laptop, but I've forgotten the root |
4 |
> password. I remember the password to my user account and I can log in |
5 |
> there fine. Can I recover the root password? |
6 |
|
7 |
|
8 |
On the grub menu, edit the entry of the system you want to boot and on the |
9 |
kernel line, add "init=/bin/bash" without the quotes. Boot that modded boot |
10 |
instructions sequence. After kernel loads, you'll have a bash. Type: "mount |
11 |
-o rw,remount /" |
12 |
Then type "passwd", put the new root pwd. Remount the partition read-only: |
13 |
"mount -o ro,remount /" and reboot. Done! |
14 |
|
15 |
-- |
16 |
Ricardo Saffi Marques |
17 |
Laboratório de Administração e Segurança de Sistemas (LAS/IC) |
18 |
Universidade Estadual de Campinas (UNICAMP) |
19 |
Cell: +55 (19) 8128-0435 |
20 |
Skype: ricardo_saffi_marques |
21 |
Website: http://www.rsaffi.com |