How to Change the Root Password in Linux Picture 13
Press Ctrl+X. This tells the system to boot directly to a root-level command prompt in single-user mode.
How to Change the Root Password in Linux Picture 14
Type mount –o remount,rw / at the prompt and press ↵ Enter. This mounts the file system in read-write mode.
How to Change the Root Password in Linux Picture 15
Type passwd at the prompt and press ↵ Enter. Since booting into single-user mode gives you root access, there's no need to pass additional parameters to the passwd command.
How to Change the Root Password in Linux Picture 16
Type a new root password and press ↵ Enter. The characters you type won't be displayed on the screen. This is normal.
How to Change the Root Password in Linux Picture 17
Retype the new password and press ↵ Enter. When the system confirms you've re-entered the same password, you'll see a message that reads 'password updated successfully.'
How to Change the Root Password in Linux Picture 18
Type reboot –f and and press ↵ Enter. This command reboots the system normally.