Great Circle Associates Firewalls
(July 1996)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Re: [HELP] I lost root password!
From: Geoff Mulligan <geoff @ mulligan . com>
Date: Tue, 23 Jul 1996 03:03:35 -0600
To: jsdy @ cospo . osis . gov
Cc: Firewalls @ GreatCircle . COM
In-reply-to: Your message of "Mon, 22 Jul 1996 09:46:57 -0400"
References: <9607221336 . AA25497 @ relay2 . cospo . osis . gov>

"Joseph S. D. Yao" <jsdy @
 cospo .
 osis .
 gov> wrote:
> > Date: Fri, 19 Jul 1996 10:21:09 -0600
> > From: Geoff Mulligan <geoff @
 mulligan .
 com>
> > Subject: Re: [HELP] I lost root password! 
> ...
> > Here is the cookbook method to remove the root password:
> ...
> > 5. Once the drive is mounted type:
> >      ed /mnt/etc/shadow
> >      /^root:/c
> >      root:::::::
> >      .
> >      w
> >      q
> 
> Oh, no!!!!  Do you really want to eliminate user ID, group ID,
> description (not particularly useful, but ...), home directory and
> shell??????

This is the shadow file not the password file that is being edited.
user id, group id, gecos field, home dir and shell are NOT stored in
this file.

> A better set of 'ed' commands to use if you just want to (*shudder*)
> eliminate the root password is:
> 	s/^\([^:]*:\)[^:]*/\1/
> 	w
> 	q
> or, much better, to replace it with another encrypted password whose
> unencrypted value you know:
> 	s/^\([^:]*:\)[^:]*/\1encryptedpasswd/
> 	w
> 	q

We running in single user mode!  Why shudder about removing the root
password.  After removing the root password just reboot into single user
mode and set the password.  These other ed commands are just much too
complicated.

	geoff


References:
Indexed By Date Previous: Re: Re: Sidewinder Versus EagleRaptor (going out of topic)
From: "Mattias Lindstr\vm" <mattias . lindstrom @ ihc . se>
Next: Gauntlet & Microsoft
From: Don_Tompkins @ esd . tracor . com
Indexed By Thread Previous: Re: [HELP] I lost root password!
From: "Joseph S. D. Yao" <jsdy @ cospo . osis . gov>
Next: Re: [HELP] I lost root password!
From: "Joseph S. D. Yao" <jsdy @ cospo . osis . gov>

Google
 
Search Internet Search www.greatcircle.com