Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
Shells Virtual Desktop
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

Forgot root Password = Please help

plumbergplumberg Veteran, Megathread Squad

Ok, so it finally happened. I have a VM which I did not access for a long time and I don't seem to recollect the root password (sorry, I am yet to advance to keys - that will be my next step).

I have access to the console and can mount a rescue disk too.

Any quick pointers to get access to my vm please?

Thanks in advance

Comments

  • InceptionHostingInceptionHosting Member, Host Rep

    If you have console access just put it in single usermode and reset the password.

    Google example: centos 7 single user mode

    Thanked by 1mgcAna
  • Fastest way if you have access to the grub menu is to append init=/bin/sh to the linux ... line. It should pop you into a root shell where you can reset the password via passwd.

    Just Google for more specifics on the init=/bin/sh option and you'll find enough to help you through.

  • plumbergplumberg Veteran, Megathread Squad

    @InceptionHosting said:
    If you have console access just put it in single usermode and reset the password.

    Google example: centos 7 single user mode

    I think this did the trick. Thank you @InceptionHosting

    Thanked by 1InceptionHosting
  • plumbergplumberg Veteran, Megathread Squad

    @InceptionHosting Turns out I had another user created which was supposed to be used for login instead of root; whose password is working already.

    Guess a nice new thing learned today

Sign In or Register to comment.