Skip to content

DRBIG Corner of the net

Just some mindless ramblings about stuff

  • Home
  • Home
  • Blog Posts
  • Weather
    • Flight Tracking
    • Rain
  • Gallery
  • Projects
    • Intel ™ Bunny People
    • Recession 08/09
  • About
    • Captain’s log
    • Cookie Policy
    • Weblinks

Lost CentOS login and password

 admin  March 12, 2007  Posted in General

You can reset the root password by booting to runlevel 1: To recover lost root password using GRUB boot loader: 1. Boot the affected system to the GRUB loader 2. Select your operating system and type E for edit 3. Select kernel and type E for edit 4. Select boot and add runlevel 1 to the end of the line 5. Press Enter and hit B for boot 6. At the sh prompt, use passwd to change the password 7. Reboot the PC Or, if by some strange chance you have lilo for your boot loader: To recover lost root password using LILO boot loader: 1. Boot the machine to the LILO prompt 2. Type linux 1 or linux single to enter single user mode 3. At the prompt, use passwd to change the password 4. Reboot Then you should be able to login as root with your new password and change passwords for other accounts as needed.

Author: admin
Tagged centos, login

Post navigation

Windows XP Auto Login →
← Hardware detection and script sh at start

Copyright © 2025 DRBIG Corner of the net

Design by ThemesDNA.com