Table of contents
๐ Are you faced with the daunting challenge of changing your password within Ubuntu VirtualBox? Fear not!
In this blog post, we unveil a step-by-step guide that will unravel the complexities and empower you to conquer the password-changing puzzle effortlessly.
Get ready to bid farewell to frustration and embrace the satisfaction of regaining control over your virtual machine experience. ๐ช๐ป
FOLLOW THESE STEPS:
๐ฅ๏ธ Start the Ubuntu virtual machine in VirtualBox.
โจ๏ธ When the GRUB boot menu appears, select the default Ubuntu entry and press the "e" key to edit the boot options.
๐ Find the line that starts with "linux" or "linux16" and contains "ro quiet splash".
โ At the end of that line, add
init=/bin/bash
. So the line would look something like:linux /boot/vmlinuz-<version> root=UUID=<UUID> ro quiet splash init=/bin/bash
โจ๏ธ Press "Ctrl+X" or "F10" to boot with the modified options. This will start the system in a single-user mode.
๐ป The system will boot to a root shell prompt without asking for a password.
โจ๏ธ Run the following command to remount the root filesystem in read/write mode:
mount -o remount,rw /
๐ Reset the password for the user by running the following command:
passwd username
Replace "username" with the actual username for which you want to change the password.
๐ Follow the prompts to enter a new password and confirm it.
๐ After changing the password, Reboot or Restart the System.
Once the system restarts, you should be able to log in with the new password you set. Remember to remove the init=/bin/bash
from the boot options to avoid entering the root shell every time you boot.
In conclusion, navigating the realm of password changes in Ubuntu VirtualBox no longer needs to be a daunting task. ๐ป