🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.linux.misc
Article #450

Re: Forgot my ROOT PASSWORD...

#450
From: Robie Basak
Date: Sun, 16 Apr 2000 00:00
35 lines
2638 bytes
On Sun, 16 Apr 2000 14:13:00 GMT, Robin said:
>On Sun, 16 Apr 2000 10:53:07 GMT, "Johnno"
><johnno@nospam.casebook.org> wrote:
>
>>"Don Sacramento" <cyberiasurf@pacific.net.ph> wrote:
>>
>>> > Do I have to reinstall Linux if I forgot my root password, or is
>>> > there some way to get back into the system without doing this
>>
>>> I hope this would solve your problem...At the linux LILO prompt
>>> keyin 'linux single'. This will start your linux on a single user mode,
>>> you will now get a root shell access. Through this access you can
>>> gain access to the file /etc/shadow. Edit the file /etc/shadow using
>>> vi editor. Delete from the second field of the root id (those set of
>>> characters stands for your encyrpted password).. The field is
>>> similar to the one below.
>>>
>>> root:Ai745$djf:11062:0:999999:7
>>>
>>> 1)Delete all the set of characters from the second field ( next to the
>>> 'root:'). Save then exit the shadow file.
>>> 2) then type the command 'password' from the bash..
>>> 3) you will be now asked for a new password.
>>> 4) key in your password
>>> 5) you now have the new password for your linux....
>>
>>Once he has booted into single-user mode, all he needs to do is run "passwd"
>>(not "password") and type a new root password when prompted.
>>
>You don't need the old password ?

Not if you're root, which you are in single user mode.

Robie.
-- 
Technical Details
Message-ID: <slrn8fjs2f.2i4.rb@localhost.localdomain>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38F5D0D4.8C9255A0@thezone.net> <38F96C68.B4473AC3@pacific.net.ph> <nYgK4.266$iV.626598@news0.optus.net.au> <38feca52.2583655@loomi.telstra.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111240,f67da80112dc9b34
X-Google-Attributes: gid111240,public
X-Google-Thread: faa64,f67da80112dc9b34
X-Google-Attributes: gidfaa64,public
X-Google-Thread: 1103af,f67da80112dc9b34
X-Google-Attributes: gid1103af,public
X-Google-Thread: 100c5f,f67da80112dc9b34
X-Google-Attributes: gid100c5f,public
X-Google-Thread: 102983,f67da80112dc9b34
X-Google-Attributes: gid102983,public
X-Google-Thread: 1074fd,f67da80112dc9b34
X-Google-Attributes: gid1074fd,public
From: rb@localhost.localdomain (Robie Basak)
Subject: Re: Forgot my ROOT PASSWORD...
Date: 2000/04/16
Message-ID: <slrn8fjs2f.2i4.rb@localhost.localdomain>
X-Deja-AN: 611893550
References: <38F5D0D4.8C9255A0@thezone.net> <38F96C68.B4473AC3@pacific.net.ph> <nYgK4.266$iV.626598@news0.optus.net.au> <38feca52.2583655@loomi.telstra.net>
X-Original-NNTP-Posting-Host: 212.188.145.160
X-Trace: server12-lon1.london1.l3.net 955904093 212.49.224.15 (Sun, 16 Apr 2000 17:54:53 BST)
Reply-To: arb.cbdaesfagkh@iijnkalmmen.ocpoqmr
NNTP-Posting-Date: Sun, 16 Apr 2000 17:54:53 BST
Newsgroups: comp.os.linux.misc,alt.os.linux,redhat.general,linux.redhat.misc,aus.computers.linux,alt.linux