CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] Help! Linux problem

Posted by Jon Elson
on 2001-09-08 21:58:20 UTC
Eric Keller wrote:

> >It has
> > RH 5.2 on it. I cant get logged onto the system as root (or any thing
> > else) because of a forgotton password. Can anybody help. I only have
> > the original install diskette and CD. Can anybody help?
> >
> > Don
> Don,
> You can use a recovery installation of Linux on a floppy to change
> the root password.

You don't even need to do this. You need to start the system
single-user, then you can use whatever tool is most easy to fix the
problem. probably the passwd program to set the root password to
a known value.

Booting single-user is done by entering the kernel name (might be
linux or rtlinux) and then the word single, so it looks like this :

LILO boot: linux single

When it finished booting, you should be at a root prompt, signified
by the # prompt character.

Now the fun begins. The passwd utility doesn't allow you to change
a password unless you already know it. So, you need to use a text
editor to blank out the field in the /etc/passwd file.

There should be a line in /etc/passwd that looks like this :
root:nzv19ex21:0:0:root:/root:/bin/bash

The garble following root: is the encrypted password. Just blank that
all out, so it reads like

root::0:0:root:/root:/bin/bash

and then exit from the editor, saving the file. If you have emacs
installed,
you would edit it with

emacs /etc/passwd

and you can change the text on the screen. Type ctrl/X ctrl/C to exit,
type Y to tell it to save the file.

now, type

passwd

and it will guide you through entering a new password. I think you just
enter a blank line for the old password request.

Jon

Discussion Thread

don.pat.brock@p... 2001-09-08 12:41:59 UTC Help! Linux problem Eric Keller 2001-09-08 13:31:58 UTC Re: [CAD_CAM_EDM_DRO] Help! Linux problem Jon Elson 2001-09-08 21:58:20 UTC Re: [CAD_CAM_EDM_DRO] Help! Linux problem Earl 2001-09-09 01:57:32 UTC Re: Help! Linux problem Donald Brock 2001-09-09 02:59:27 UTC Re: Help! Linux problem rfs@c... 2001-09-09 19:10:25 UTC Re: Help! Linux problem Jon Elson 2001-09-09 21:46:24 UTC Re: [CAD_CAM_EDM_DRO] Re: Help! Linux problem Ray 2001-09-10 07:00:24 UTC Re: Re: Help! Linux problem jensor@q... 2001-09-10 19:02:03 UTC Re: Help! Linux problem Doug Fortune 2001-09-10 20:36:24 UTC Re: [CAD_CAM_EDM_DRO] Re: Help! Linux problem Jon Elson 2001-09-10 21:57:28 UTC Re: [CAD_CAM_EDM_DRO] Re: Help! Linux problem Jack Ensor 2001-12-16 18:15:57 UTC Re: [CAD_CAM_EDM_DRO] Re: Help! Linux problem Tim Goldstein 2001-12-16 19:47:56 UTC Keyboard for CNC Gail & Bryan Harries 2001-12-16 22:28:39 UTC RE: [CAD_CAM_EDM_DRO] Keyboard for CNC Jon Elson 2001-12-16 22:43:30 UTC Re: [CAD_CAM_EDM_DRO] Re: Help! Linux problem Jon Elson 2001-12-16 22:47:07 UTC Re: [CAD_CAM_EDM_DRO] Re: Help! Linux problem Tim Goldstein 2001-12-16 22:48:26 UTC RE: [CAD_CAM_EDM_DRO] Keyboard for CNC stevenson_engineers 2001-12-17 00:11:52 UTC Re: Keyboard for CNC Tim Goldstein 2001-12-17 06:58:42 UTC Re: [CAD_CAM_EDM_DRO] Re: Keyboard for CNC