How to enter single user mode in CentOS

I'm facing this issue where I forgot about my root password in CentOS.
Hence after look around, I found out that entering single user mode able to let me login as root user and then change the password for it. :)
The step is very easy,

  1. Press any key when booting up CentOS to enter interactive mode
  2. Instead of choosing any of the bootable OS, type 'a'
  3. Go to the end of line, put a 'space' and then enter 'single' then press enter
  4. Now you will login as root user :)
Enjoy

Comments

Popular posts from this blog

Django Form: MultipleChoiceField and How To Have Choices From Model Example

DJango Queryset comparing date time

Jquery Validation fix for date format dd/mm/yyyy in Chrome and Safari