-2

I have a CentOS 7.0 VM, running under VirtualBox. Set it up a few months back, nice to get it back, but not crucial.

I have successfully followed the instructions from RedHat, but they seem to have had no effect.

The password command tells me that the passwords (root and my account) have changed successfully. I can then su into my account, and su back into root with the new password: allowed in fine.

So I run exec /sbin/init to continue with boot. Reach KDE login, and cannot login with either password.

I tried to reach the console, but looks like I need to upgrade my VirtualBox for that.

Any suggestions?

garethTheRed
  • 33,289
  • 4
  • 92
  • 101
jalanb
  • 578
  • 4
  • 15
  • Right Ctrl + F-keys will give you console access. See [here](http://unix.stackexchange.com/questions/64155/how-to-send-ctrl-alt-fn-to-virtual-box-guest-linux?rq=1) – garethTheRed Oct 14 '14 at 14:22
  • Any error messages in `/var/log/secure` from around the time of the login failure? – Mark Plotnick Oct 14 '14 at 15:00

1 Answers1

1

The instructions you followed appear to have a typo in the mount -o remount, rw / line. There should not be a space after the comma. The corrected line should read:

mount -o remount,rw /

If you entered it with the space as indicated in the document, the passwd command will not change the root password because the system is still in a read-only state.

Timothy Martin
  • 8,447
  • 1
  • 34
  • 40