Question: How to Reset Root Password in Linux?
Contents

1. Reset Lost Root Password from the Grub Menu

  • Now press e to edit the commands.
  • Press F10 .
  • Mount your root filesystem in read-write mode:
  • Once you are done, type:
  • Open the terminal, and type the following command to become root:
  • At this point we need to jail ourselves in the “mnt/recovery” directory.

How do I change the root password in Linux?

How to change root password in Ubuntu

  1. Type the following command to become root user and issue passwd: sudo -i. passwd.
  2. OR set a password for root user in a single go: sudo passwd root.
  3. Test it your root password by typing the following command: su –

How do I find my root password in Linux?

Method 1 With the Current Root Password

  • Open a terminal window.
  • Type su at the command prompt, and press ↵ Enter .
  • Type the current root password, then press ↵ Enter .
  • Type passwd and press ↵ Enter .
  • Type a new password and press ↵ Enter .
  • Retype the new password and press ↵ Enter .
  • Type exit and press ↵ Enter .
David Miller

David Miller

Executive Financial & Market Analyst

David Miller brings 15 years of experience in global economics, personal finance strategy, and market dynamics. He specializes in turning complex economic trends into actionable insights for everyday readers.

Share this article
Twitter Facebook Pinterest