Skip to main content

how to reset root password

this is the tutorial how to reset your root password. it can be applied to redhat enterprise linux-based (oracle linux, centos, scilinux, fedora ).

1. restart your system, wait until it boot-up. press 'esc' to enter the GRUB menu

2. select from GRUB menu your linux kernel, it usually like this "kernel-vmlinuz-*" , press 'e' to edit

3. edit the at last line (it usually like this "rhgb linux quiet"), change it with :
    rhgb linux single
    or,
    rhgb linux quiet 1
(this two lines above works well with fedora), or
    rhgb linux single init=/bin/bash
(use this line if the previous doesn't work, especially with enterprise-based distribution)
press 'enter' then

4. back to the GRUB menu, choose the kernel and press 'b' to boot

5. wait for the system to boot-up and if the change succeed it will bring the system to login directly as root user

6. type command 'passwd' to enter your new root password

note:
if the last step failed, type the line above on terminal
# mount -n -o remount, rw /
# passwd       

Comments

Popular posts from this blog

Installing Qualcomm Atheros AR8162 Fast Ethernet Driver on Lenovo G400

I was preparing Lenovo G400 laptop for my linux class, after I installed CentOS 6.5 on it, tada,,,, my ethernet adapter won't show up. I checked with ifconfig command but where the hell my eth0 ??. Then i type the command below : # lspci -v 01:00.0 Ethernet controller: Qualcomm Atheros AR8162 Fast Ethernet (rev 10)     Subsystem: Lenovo Device 3802     Flags: bus master, fast devsel, latency 0, IRQ 32     Memory at 90500000 (64-bit, non-prefetchable) [size=256K]     I/O ports at 2000 [size=128]     Capabilities: <access denied>     Kernel driver in use: alx It seem my wired network adapter do not have its driver. After searching on the net then I find this great article. I wrote it out on my blog to make it sure I have notes for the trouble. This is how we troubleshoot it :   First download this file : alx-linux-v2.0.0.6.rar unrar it, run make command, change directory...

All certification

Honor Code Certificate from edX - Linux Foundation