Step one – start your centos and when you see Booting CentOS (centos version) … hit ESC – see picture below
Step two – click (e) on your keyboard , you will see a new menu – see picture below
Step three – choose kernel /vmlinuz-version-number and hit (e) on your keyboard
Step four – you will have to add a number (1) after <Type-pc KEYTABLE=us rd_NO_DM rhgb quiet 1 and hit enter – see picture below
You will return again to – see picture below , hit (b) on your keyboard, now CentOS should boot to single user mode
In your shell type the following
[root@localhost /]# passwd root
Changing password for user root.
New password: (enter the new password for root)
Retype new password: (retype your password)
passwd: all authentication tokens updated successfully
now in your shell type init 5 , to switch to runlevel 5 and login with your new root password

Step two – click (e) on your keyboard , you will see a new menu – see picture below
Step three – choose kernel /vmlinuz-version-number and hit (e) on your keyboard
Step four – you will have to add a number (1) after <Type-pc KEYTABLE=us rd_NO_DM rhgb quiet 1 and hit enter – see picture below
You will return again to – see picture below , hit (b) on your keyboard, now CentOS should boot to single user mode
In your shell type the following
[root@localhost /]# passwd root
Changing password for user root.
New password: (enter the new password for root)
Retype new password: (retype your password)
passwd: all authentication tokens updated successfully
now in your shell type init 5 , to switch to runlevel 5 and login with your new root password
0 comments
Post a Comment