LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-31-2014, 09:14 AM   #1
Tarikc
Member
 
Registered: May 2009
Distribution: CentOS, RedHat, Ubuntu
Posts: 64

Rep: Reputation: 4
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,
 
Old 07-31-2014, 10:25 AM   #2
mcresist
LQ Newbie
 
Registered: Jun 2014
Location: Michigian
Distribution: CentOS5/6/7
Posts: 19

Rep: Reputation: 3
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.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
resetting the root password ananthasoorajrpai Linux - Newbie 3 08-23-2013 03:31 AM
Resetting root password emon1025 Linux - Newbie 2 10-26-2012 12:21 PM
Centos 5.4 Root Password Changed and or System Comprimised metallica1973 Linux - Security 18 10-11-2010 08:11 PM
resetting root password invader44 Slackware 1 08-04-2009 04:57 PM
Resetting Root password lorddecker Linux - Software 4 06-18-2004 03:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration