from small one page howto to huge articles all in one place

search text in:




Other .linuxhowtos.org sites: www.linuxhowtos.org
toolsntoys.linuxhowtos.org



Last additions:
How to make X listen on port 6000

How to make X listen on port 6000

words:

34

views:

88038

userrating:

average rating: 1.2 (52 votes) (1=very good 6=terrible)


May, 25th 2007:
April, 26th 2007:
Apr, 10th. 2007:
Druckversion . pdf icon
You are here: Tips&Tricks

Recovering the root password

This tip shows you a couple of ways to reset the root password if you've forgotten it.

The easiest way is of course to boot off a LiveCD, chroot into the primary hard disk as described in the Gentoo Install Guide and use passwd.

If you don't have a LiveCD, or the system doesn't have CDROM drive, you can reboot the system into single user mode to reset the password. Simply pass the options "init=/bin/sh" to the kernel from the bootloader menu. When the system boots it will drop you into a root shell. The disk will be mounted read-only so remount it read-write with

mount -o rw,remount /dev/ROOT
(be sure to change ROOT to your actual root partition). Edit /etc/shadow and remove the encrypted password. Reset the root password with passwd and reboot the system.

You should now be able to login with the new password.

From http://www.gentoo.org/news/en/gwn/20040301-newsletter.xml

back



Support us on Content Nation

New Packages

- as rdf newsfeed
- as rss newsfeed
- as Atom newsfeed
2026-08-31
2026-08-30
bitwarden-desktop-bin - 2026.8.0
Ebuild name:

app-admin/bitwarden-desktop-bin-2026.8.0

Description

Bitwarden password manager desktop client

Added to portage

2026-08-30

boost - 1.92.0
Ebuild name:

dev-libs/boost-1.92.0

Description

Boost Libraries for C++

Added to portage

2026-08-30

gentoolkit - 0.8.1
Ebuild name:

app-portage/gentoolkit-0.8.1

Description

Collection of administration scripts for Gentoo

Added to portage

2026-08-30

incus - 7.4
Ebuild name:

app-containers/incus-7.4

Description

Modern, secure and powerful system container and virtual machine manager

Added to portage

2026-08-30

lego - 5.4.0
Ebuild name:

app-crypt/lego-5.4.0

Description

Let's Encrypt/ACME client (like certbot or acme.sh) and library written in Go

Added to portage

2026-08-30

lmdb - 1.0.1-r3
Ebuild name:

dev-db/lmdb-1.0.1-r3

Description

An ultra-fast, ultra-compact key-value embedded data store

Added to portage

2026-08-30

luajit - 2.1.1787165859
Ebuild name:

dev-lang/luajit-2.1.1787165859

Description

Just-In-Time Compiler for the Lua programming language

Added to portage

2026-08-30

m-buffer - 0.16.1
Ebuild name:

app-emacs/m-buffer-0.16.1

Description

List Oriented Buffer Operations for Emacs

Added to portage

2026-08-30

skk-jisyo - 202605
Ebuild name:

app-i18n/skk-jisyo-202605

Description

Jisyo (dictionary) files for the SKK Japanese-input software

Added to portage

2026-08-30

zotero-bin - 10.0.1
Ebuild name:

app-text/zotero-bin-10.0.1

Description

Helps you collect, organize, cite, and share your research sources

Added to portage

2026-08-30

rdf newsfeed | rss newsfeed | Atom newsfeed
Copyright 2004-2025 Sascha Nitsch Unternehmensberatung GmbH
- Copyright and legal notices -
Time to create this page: 72.4 ms