Popular Posts

Tuesday, 30 October 2012

How to reset root password on CentOS 6 singleuser mode

Step one – start your centos and when you see Booting CentOS (centos version) … hit ESC – see picture below
HIT ESC


Step two – click (e) on your keyboard , you will see a new menu – see picture below
Hit (e) on your keyboard







Step three – choose kernel /vmlinuz-version-number and hit (e) on your keyboard
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
add 1 after quiet



You will return again to – see picture below , hit (b) on your keyboard, now CentOS should boot to single user mode
Hit (b) on your keyboard







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