Gentoo Archives: gentoo-user

From: Ricardo Saffi Marques <saffi@××××××××××××××.br>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Recovering root password
Date: Mon, 24 Mar 2008 20:40:34
Message-Id: 3b5772b30803241340v2fa2b85agfd5d1e8c4679b121@mail.gmail.com
In Reply to: [gentoo-user] Recovering root password by Grant
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

Replies

Subject Author
Re: [gentoo-user] Recovering root password Steven Lembark <lembark@×××××××.com>
Re: [gentoo-user] Recovering root password Neil Bothwick <neil@××××××××××.uk>
Re: [gentoo-user] Recovering root password Grant <emailgrant@×××××.com>