🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: csu.unix.linux
Article #94

Re: Lost root password

#94
From: Xylen
Date: Tue, 28 Dec 1999 00:00
37 lines
1994 bytes

Adam Carheden wrote:
> 
> Okay, I have no idea how, but my root password no longer works.  Can I
> simply boot from a floppy and replace the root entry in /etc/shadow with
> one from a computer who's root password I do know?

From Linux, 2nd Edition, chapter 6:

"...boot your computer with the installation diskettes. Use mkdir to
create a new directory (on the RAM disk of the installation directory)
and mount the partition on which your Linux system is located into this
directory: 

mount -t ext2 /dev/xxx/dir

Now you can access the file /dir/etc/passwd or /dir/etc/shadow and
delete the root password...If you want to prevent other users from
changing the root password in the same way, you must set the boot
sequence in the BIOS of your computer to C:, A: (thus booting with the
diskette is no longer possible) and secure the BIOS with a password,
which this time you must definitely not forget..."

Well that is as close to official as you can get, with more detail than
you probably need. But in case any one else (including me) loses their
password, it will be nice to have the info handy.

Xylen

-- 
  __^__                                __^__ 
 ( ___ )------------------------------( ___ ) 
  | / | This message has been brought  | \ | 
  | / | to you by the language C and   | \ | 
  |___| the number F                   |___| 
 (_____)------------------------------(_____)
Technical Details
Message-ID: <3868EFA8.F72EE888@holly.colostate.edu>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3868D051.EA3D47AC@holly.ColoState.EDU>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1159f7,89234b293e3ed28b
X-Google-Attributes: gid1159f7,public
From: Xylen <mctupper@holly.colostate.edu>
Subject: Re: Lost root password
Date: 1999/12/28
Message-ID: <3868EFA8.F72EE888@holly.colostate.edu>
X-Deja-AN: 565718066
Content-Transfer-Encoding: 7bit
References: <3868D051.EA3D47AC@holly.ColoState.EDU>
X-Accept-Language: en,pdf
Content-Type: text/plain; charset=us-ascii
X-Trace: 28 Dec 1999 10:13:15 -0700, res099037.halls.colostate.edu
MIME-Version: 1.0
Newsgroups: csu.unix.linux