🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.redhat.install
Article #62

Re: Linux startup problem.

#62
From: Wim Dumon
Date: Fri, 12 Dec 1997 00:00
72 lines
3232 bytes
houghi (houghihoughi@Tande.com) wrote:
: I just installed Red Hat 4.02 for Intel kernel 2.0.30 From the
: InfoMagic 6CD set.

: When I reboot, I tipe in linux, otherwise my computer starts to load
: DOS/WIN.

: Then I get
: loalhost login :   if I type anything her, I get to pu in a password,
: If i do not put anything in, I can not proceed.

: If I put in a password, I get Login incorrect; Login.

: The only time I had to put in a password, was during the instalation.

: I might be stupid, but I do know I use the same password (It is 111111
: at this moment) just to be sure I do not forget it.

: What am I doing wrong during the instalation and or login?

Donnow, maybe your keyboard mapping was still wrong during the installation
or the numlock light wasn't lit ?  Anyway : here's how to solve it.

Boot linux with the boot-time option 'single'.  To do this, hold down 
the shift key when the LILO prompt appears and enter something like 
'linux single' (press tab to see a list of available kernel images).  
If your system still asks for the root pwd, you'd better boot with 
'linux init=/bin/bash' which will give you a root shell automagically.

Now you have a shell and your root fs is mounted, in readonly modus. it's
time to remount it writeable and this is how to do it :
mount -o remount -w -n /

Also mount the usr partition since this is where your favorite editor (vi?)
resides :
mount /usr  (or, mount -a to mount everything).

Enter this :
/usr/bin/vi /etc/passwd

search a line which looks like this :
root:pNtkGHCSmlhfe:0:0:root:/root:/bin/bash
Move to that line.  (use the keys 'j' and 'k' to go up and down)
Now, use the keys 'l' and 'h' to go right/left, until you are just behind the
first ':'.  Press 'x' several times until the line looks like this :

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

Now save the file : enter ':wq' and press enter.
(alternate way to change your pwd : hit /usr/bin/passwd, but remember : you're
 in querty!)

Now it's time to reboot.  If you booted using the single option, logout,
press alt-ctrl-del or enter 'shutdown -r now' (whatever works for you to
reboot your computer).  If you used the 'init=/bin/bash' way, reboot this
way :
umount -a
sync
sync
sync
logout  (or power off or reset)

running 'shutdown' might work, but I never tested it.
Well, that's it.  Boot linux again and login as root, no password will be
asked, unless you installed some uncool security tools.

Wim.

--
Wim Dumon               KULeuven student
wimpie@kotnet.org       Linux !   3dom !
Technical Details
Message-ID: <881933447.403668@marvin.kulnet.kuleuven.ac.be>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <349044fb.414559@news.ping.be>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fcd6c,6062c79ec115fa89
X-Google-Attributes: gidfcd6c,public
X-Google-Thread: 100a19,6062c79ec115fa89
X-Google-Attributes: gid100a19,public
From: dumon@pluto.cs.kuleuven.ac.be (Wim Dumon)
Subject: Re: Linux startup problem.
Date: 1997/12/12
Message-ID: <881933447.403668@marvin.kulnet.kuleuven.ac.be>
X-Deja-AN: 297546198
References: <349044fb.414559@news.ping.be>
Followup-To: linux.redhat.install,be.comp.os.linux
Cache-Post-Path: marvin.kulnet.kuleuven.ac.be!dumon@pluto.cs.kuleuven.ac.be
Organization: KULeuvenNet
Newsgroups: linux.redhat.install,be.comp.os.linux