ComputerSecurityStudent (CSS) [Login] [Join Now]




|UNIX >> Fedora >> Current Page |Views: 22692

(Fedora: Lesson 2)

{ Use Fedora 14 Grub to boot into single user mode }


Section 0. Background Information
  1. Background information.
    • Lets say you lost the root password and you have no way to figure it out.  No problem.  All you simply have to do is to physically power off the machine and power it back on.  During the start of the reboot, hit the "e" or the "down arrow" key.  If you are using VMware, you will need to click in the Black VMware window before reboot and then press the "e" key.
    • You must have physical access to a real machine or virtual machine.

  2. Legal Disclaimer
    • As a condition of your use of this Web site, you warrant to computersecuritystudent.com that you will not use this Web site for any purpose that is unlawful or that is prohibited by these terms, conditions, and notices.
    • In accordance with UCC § 2-316, this product is provided with "no warranties, either express or implied." The information contained is provided "as-is", with "no guarantee of merchantability."
    • In addition, this is a teaching website that does not condone malicious behavior of any kind.
    • Your are on notice, that continuing and/or using this lab outside your "own" test environment is considered malicious and is against the law.
    • © 2012 No content replication of any kind is allowed without express written permission.

Section 1: Prerequisite
  1. Open VMware Player on your windows machine.
    • Instructions:
      1. Click the Start Button
      2. Type "vmware player" in the search box
      3. Click on VMware Player

     

  2. Start the Fedora14 VM
    • Instructions:
      1. Click on the Fedora14 VM
      2. Click on Play virtual machine

     

  3. Boot to Grub 2 Menu
    • Instructions
      1. Once you see the below vmware screen, (1) Left Click in the screen and (2) press the "e" key
    • Note(FYI):
      1. This might take you a few times so be patient!!!
      2. Physical Machine Instructions
        1. Physically power off the machine.
        2. Physically power on the machine.
        3. During the boot process, either hit the "e" or "down arrow" key.

 

Section 2: Configure grub to provide single user root prompt
  1. Access the Grub Menu
    • Note(FYI):
      1. Section 1, Step 3 should produce the below screen.
    • Instructions:
      1. Press the "e" key to access the kernel selection.

     

  2. Access the Kernel
    • Instructions:
      1. Press the "e" key to edit the kernel.
    • Note(FYI): What is the kernel?
      • The kernel is the part of the operating system that allocates machine resources, including memory, disk space, and CPU cycles, to all other programs that run on a computer.  The kernel includes the low-level hardware interfaces (a.k.a drivers) and manages processes, the means by which Linux executes programs.

     

  3. You should see the below screen.
    • Instructions:
      1. Proceed to step 4.

     

  4. Prepare Operating System to Boot into Single User Mode
    • Instructions:
      1. Type a "1" after the word quiet (See Below)
      2. Press Enter.
    • Note(FYI):
      1. This is how we will put the system into single user mode.

     

  5. Boot the System
    • Instructions:
      1. Type "b" to boot.
    • Note(FYI):
      1. The below screen is the result of pressing enter in step 4.

     

Section 3: Single User Mode
  1. Got Root?
    • Note(FYI):
      1. Now your system is in single user mode.

     

  2. Create a new root password
    • Instructions:
      1. passwd root
    • Note(FYI):
      1. Notice you were not prompted for the old root password.

     

  3. Boot machine into the Graphical Multiuser Interface
    • Instructions:
      1. init 5
    • Note(FYI): Below are all the run levels.
      • init 0 - Halt
      • init 1 - Single User, File Systems are Mounted, Network Down.
      • init 2 - Multi User, No NFS, File Systems Mounted, Network Up.
      • init 3 - Multi User, File Systems are Mounted, Network Up.
      • init 4 - User defined.
      • init 5 - Graphical Multiuser, File Systems Mounted, Network Up.
      • init 6 - Reboot.

     

  4. Login as student
    • Instructions:
      1. Login as student

     

  5. Start up a terminal window
    • Applications --> System Tools --> Terminal

     

  6. Switch User to Root
    • Instructions:
      1. su - root
      2. Provide the Root Password

 

Section 4: Proof of Lab
  1. Proof of Lab
    • Instructions:
      1. grep quiet /boot/grub/grub.conf
      2. date
      3. echo "Your Name"
        • Put in your actual name in place of "Your Name"
        • e.g., echo "John Gray"
    • Proof of Lab Instructions
      1. Press the <Ctrl> and <Alt> key at the same time.
      2. Press the <PrtScn> key.
      3. Paste into a word document
      4. Upload to Moodle


Help ComputerSecurityStudent
pay for continued research,
resources & bandwidth