🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Forgot my ROOT PASSWORD...

#455
From: Sebastian Schoenwetter
Date: Fri, 14 Apr 2000 00:00
73 lines
4015 bytes
Mefisto wrote:
> 
> that weird... i thought that it would ask you for the root passwd anyway...
> when shit like this happens, i usually have a boot floppy and a root floppy.
> then i mount the root partition manually and edit the passwd file...
> 
> asage wrote:
> 
> > I did this today!
> >
> > I found this advice in a newsgroup, and it worked for me:
> >
> > "If you forgot the root password, then it is eaasily fixed.
> > If you have lilo, type
> > 'linux 1'
> > at the Lilo: prompt."
> >
> > (Actually I typed in 'linux single' and it worked too)
> >
> > "It will boot you in to aa single user session, without asking for a
> > password. You should get a bash# prompt. Type
> > 'passwd root'
> > and enter a password.
> > Then either reboot (by typing "init 6" or  "shutdown -r now") or go in to
> > runlevel 5 (the GUI 'mode') by typing "init 5"
> >

It depends on which distribution you use.  They provide the defaults in
your /etc/inittab. 

You can look what happens in single user by looking for a line like this
(example from my setup)

[xx]:S:wait:/sbin/init.d/rc S
[yy]:S:respawn:/sbin/sulogin

[xx] or [yy] is an identifier you can choose to recognise what you put
in there, it is just a name

the first line tells the init program to perform the /sbin/init.d/rc S
command (single user startup script) and wait for it to finish.

The second line tells the init to launch the /sbin/sulogin program and
respawn it when you close it (exit).  You can have a different entry
here of a login program which does not ask you for the password.

-------------------------------------------------------------------

 Sebastian Schoenwetter - System engineer
 Comverse Network Systems

 tel : +32-476-745653

 mailto: sebastian_schoenwetter@icomverse.com
-------------------------------------------------------------------

		'Twas the Night before Crisis

'Twas the night before crisis, and all through the house,
	Not a program was working not even a browse.
The programmers were wrung out too mindless to care,
	Knowing chances of cutover hadn't a prayer.
The users were nestled all snug in their beds,
	While visions of inquiries danced in their heads.
When out in the lobby there arose such a clatter,
	I sprang from my tube to see what was the matter.
And what to my wondering eyes should appear,
	But a Super Programmer, oblivious to fear.
More rapid than eagles, his programs they came,
	And he whistled and shouted and called them by name;
On Update!  On Add!  On Inquiry!  On Delete!
	On Batch Jobs!  On Closing!  On Functions Complete!
His eyes were glazed ov
Technical Details
Message-ID: <38F6DDBF.825ECEAC@icomverse.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38F5D0D4.8C9255A0@thezone.net> <38F6C349.AE1F3FDD@iprimus.ca> <38F6C57F.D383E45D@linuxstart.com>

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: 1074fd,f67da80112dc9b34
X-Google-Attributes: gid1074fd,public
X-Google-Thread: 102983,f67da80112dc9b34
X-Google-Attributes: gid102983,public
X-Google-Thread: faa64,f67da80112dc9b34
X-Google-Attributes: gidfaa64,public
X-Google-Thread: 100c5f,f67da80112dc9b34
X-Google-Attributes: gid100c5f,public
X-Google-Thread: f5360,f67da80112dc9b34
X-Google-Attributes: gidf5360,public
X-Google-Thread: 1103af,f67da80112dc9b34
X-Google-Attributes: gid1103af,public
From: Sebastian Schoenwetter <sebastian_schoenwetter@icomverse.com>
Subject: Re: Forgot my ROOT PASSWORD...
Date: 2000/04/14
Message-ID: <38F6DDBF.825ECEAC@icomverse.com>
X-Deja-AN: 611035725
Content-Transfer-Encoding: 7bit
References: <38F5D0D4.8C9255A0@thezone.net> <38F6C349.AE1F3FDD@iprimus.ca> <38F6C57F.D383E45D@linuxstart.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@netvision.net.il
X-Trace: news.netvision.net.il 955702699 9532 199.203.140.6 (14 Apr 2000 08:58:19 GMT)
Organization: Comverse Network Systems
Mime-Version: 1.0
NNTP-Posting-Date: 14 Apr 2000 08:58:19 GMT
Newsgroups: comp.os.linux.misc,alt.os.linux,nf.comp.linux,redhat.general,linux.redhat.misc,aus.computers.linux,alt.linux