Re: How-to: Single user and disable X windows

From: Lenard (lenard_at_127.0.0.1)
Date: 03/08/04

  • Next message: Robert Newson: "Re: Linux Just isn't ready for the desktop. Get used to hearing it or go and improve it."
    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
    

  • Next message: Robert Newson: "Re: Linux Just isn't ready for the desktop. Get used to hearing it or go and improve it."

    Relevant Pages

    • Re: Future of IT in Lebanon
      ... It's the same Linux code base. ... Microsoft Office on a Windows server, it will install and run fine, the main ...
      (soc.culture.lebanon)
    • Re: Question about Red Hat Linux Enterprise
      ... we have is running Windows 2000 Server ... Luckily running Apache + MySQL on a Linux system is not a lot ... MySQL database and injecting it back into the MySQL installation ...
      (comp.os.linux.networking)
    • Re: Sweet Success
      ... Let's continue to assume that I prefer Windows to anything else: ... neither Linux nor Windows may be the answer. ... While it may well be initially less expensive to install a Linux-based ... of Linux simultaneously, along with Windows Server, AIX, and OS/400. ...
      (RedHat)
    • Re: [Full-disclosure] 70 million computers are using Windows 98 right now
      ... Linux is definitely not a natural migration pathway. ... Windows 2000, Windows XP, and Mac OS X seem to work pretty ... > desktop to server. ... But then the persons across the sea just can't install ...
      (Full-Disclosure)
    • Re: Benutzerkontenverwaltung mit Win 2003 Server - Teil 2
      ... und dann bin ich über Solaris zur ersten 30-Disketten-Version Linux ... Server auch keine grafische Oberfläche, der vi ist halt mein bester ... Und das ganze geht schon in Ansätzen seit Windows NT so ... > Unternehmensnetzwerk unter Unix administrieren könnte. ...
      (microsoft.public.de.german.windows.server.networking)