Re: How-to: Single user and disable X windows
From: Lenard (lenard_at_127.0.0.1)
Date: 03/08/04
- Previous message: I Love Tarts: "Red Hat 9 and a UPS"
- In reply to: YC: "How-to: Single user and disable X windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 08 Mar 2004 11:40:45 GMT
On Sun, 07 Mar 2004 23:18:52 -0800, YC wrote:
> Hi,
>
> I had configured a redhat 9 linux as a server with x windows previously.
> After configured to x windows, the display and keyboard didn't work but
> the server is functioning well. Hence, I leave as it is.
>
> Now there is a problem with the server and I forgotten the root
> password. Could anyone advice the following:
>
> (1) How to go into single user mode to over write the root passwd.
To fix your password problem try the following;
For GRUB as the boot loader;
When the boot screen is displayed press the 'Esc' key.
Next highlight the Linux boot option and press the 'e' key. { It looks
like; Red Hat Linux (2.4.20-8) }
Use the down arrow key and highlight the line that looks something like;
kernel /vmlinuz-2.4.20-8 ro root=/dev/hda2
Press the 'e' key.
Press the Spacebar once then press the number one key. You should see
something like;
kernel /vmlinuz-2.4.18-0.4 ro root=/dev/hda2 1
Press the 'Enter' key, then press the 'b' key.
After it finishes loading, you will be presented with a shell prompt
similar to the following:
sh-2.05a#
Type; passwd root
(Press the Enter key when done.)
You should see something like;
Changing password for user root.
New password:
Type the new password you want to use, then press the Enter key. Do not
use the same password (boot12) type something new that want.
A new line will appear the looks like;
Retype new password:
Type the same exact password you just typed a few seconds ago and press
the Enter key. If and when everything is all right you should see
something like;
passwd: all authentication tokens updated successfully. sh-2.05a#
If you don't see this then try again to change the password, start at the
point where you entered the command; passwd root
When done type 'init 3' without the quotes.
> (2)
> After go into single user mode, which file and what to modify so as to
> force the server not to go into x windows in the next boot?
As root edit /etc/inittab and change 'id:5:initdefault:' to read
'id:3:initdefault:'
-- Posted under the XFree86 v.1.0 license Copyright remains with the author
- Previous message: I Love Tarts: "Red Hat 9 and a UPS"
- In reply to: YC: "How-to: Single user and disable X windows"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|