LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-21-2017, 12:22 PM   #1
Robbot
LQ Newbie
 
Registered: Jul 2017
Posts: 19

Rep: Reputation: Disabled
Linux Host Broken After Root PW Change?


Hello,

I'm running RHEL 7.3 on Virtual Box. I wanted to reset the Root PW, so I appended init=/bin/bash at the end of the linux16 line from GRUB (I know that's not the text book method). The CLI came up fine and I was able to reset the root pw with:

mount -o remount,rw /
passwd root

But now when reboot the host I just get a black screen after booting from the GRUB menu. I checked the linux16 line and everything looks ok. Did I break my box or am I missing something obvious here? Thanks!

Last edited by Robbot; 11-21-2017 at 12:23 PM.
 
Old 11-21-2017, 12:30 PM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth, unfortunately...
Distribution: Currently: OpenMandriva. Previously: openSUSE, PCLinuxOS, CentOS, among others over the years.
Posts: 3,869

Rep: Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049Reputation: 2049
Quote:
Originally Posted by Robbot View Post
Hello,

I'm running RHEL 7.3 on Virtual Box. I wanted to reset the Root PW, so I appended init=/bin/bash at the end of the linux16 line from GRUB (I know that's not the text book method). The CLI came up fine and I was able to reset the root pw with:

mount -o remount,rw /
passwd root

But now when reboot the host I just get a black screen after booting from the GRUB menu. I checked the linux16 line and everything looks ok. Did I break my box or am I missing something obvious here? Thanks!
If it was working before you tried changing root's password, then yes, you have broken your box.

Do you have a subscription for RHEL?

If not, look at CentOS instead of using RHEL.
 
Old 11-21-2017, 04:22 PM   #3
Robbot
LQ Newbie
 
Registered: Jul 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
Hi, I guess I'm mostly trying to understand why that would have broken it. I have used this procedure many times with Suse11 in VMware without issue. Thanks.
 
Old 11-21-2017, 05:26 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 21,506

Rep: Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114Reputation: 4114
I would ask why don't you just login as root and change the password. The only reason to boot to single user mode would be if you forgot the password.

The only difference is that RHEL uses selinux and SuSE does not.

http://landoflinux.com/linux_reset_r...rd_rhel_7.html
 
Old 11-21-2017, 05:39 PM   #5
Robbot
LQ Newbie
 
Registered: Jul 2017
Posts: 19

Original Poster
Rep: Reputation: Disabled
mostly just to experiment to see if the same procedure from Suse also works in RHEL.
 
Old 11-22-2017, 12:39 AM   #6
giis
Member
 
Registered: Nov 2013
Location: Third Rock from Moon
Distribution: RPM/DEB based and LFS
Posts: 73

Rep: Reputation: Disabled
Can you see any error message on dmesg output?
 
  


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
[SOLVED] How to permanently change Host-name in Linux ?? ammarzaheer Linux - Newbie 4 10-13-2015 06:28 PM
IntelliMouse thumb buttons work as root, broken as non-root user, wheel works always digital vortex Linux - Hardware 7 03-02-2004 04:14 PM
broken connection or host? Suspect Linux - Newbie 3 08-13-2002 01:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:40 PM.

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
Open Source Consulting | Domain Registration