LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Resetting root password on CentOS 7 system (https://www.linuxquestions.org/questions/linux-server-73/resetting-root-password-on-centos-7-system-4175512847/)

Tarikc 07-31-2014 08:14 AM

Resetting root password on CentOS 7 system
 
Hey there,

I've installed the CentOS 7 system, and now I want to reset the root password of it.

I know that the GRUB 2 is now in place, nothing is so called single user mode but instead the rescue.target mode is in place which matches the single user mode.

But going into that mode asks for the root password.

Yes I know it, but what if I forgot it? :)

How to reset the root password? is it only through the Live CD now?.

Tried to google but nothing there yet on that system.

Hope some one got an answer.

All the best,

mcresist 07-31-2014 09:25 AM

Howdy,

http://fedoraproject.org/wiki/How_to..._root_password

Append the following to the kernel line:
rw init=/bin/bash

Seemed to work for me.

Hope this helps.


All times are GMT -5. The time now is 05:41 PM.