How to get root Password in Kali Linux?

Vijay Kumar

The last time when I used Kali Linux, I was logging with the root user. Now it has been changed, I log in with a normal user. I don't know the root password. How will I get a root password

karel

In order to run a command with root privileges in Kali Linux preface that command with sudo and authenticate by entering your user password. Your user password in Kali Linux is the same as the password that you use to login to your normal user account with.

If that doesn't work and you have forgotten your user password, then you need to reset your lost administrative password. You need to authenticate with your administrative password in order to add your normal Kali Linux user to the sudo group as a sudo user.


Reset lost administrative password

  1. Immediately after the BIOS/UEFI splash screen during boot, with BIOS, quickly press and hold the Shift key, which will bring up a GNU GRUB menu screen. With UEFI press (perhaps several times) the Esc key to get to the GNU GRUB menu screen. Sometimes the manufacturer's splash screen is a part of the Windows bootloader, so when you power up the machine it goes straight to the GNU GRUB menu screen, and then pressing Shift is unnecessary.

    The timing when to press the Shift or Esc key can be tricky, so sometimes if you miss it you need to try it again. If that doesn't work try the answers to I can't get the GRUB menu to show up during boot.

    You will see a GNU GRUB menu screen that looks like this. Select Advanced options for Kali GNU/Linux and press Enter.

    enter image description here

  2. A new blue screen will appear showing a list of kernels, which includes options of booting the kernels normally or in recovery mode.

    enter image description here

    Press the down arrow key until you select the 2nd entry from the top (the one with the recovery mode in the description) and then press Enter twice.

  3. Now you should see this recovery menu. From the Recovery Menu screen, use the arrow keys scroll down to root  Drop to root shell prompt and then press Enter.

    enter image description here

  4. You'll see a root prompt, something like this: root@kali:~#. Remount it with write permissions:

     mount -rw -o remount /  
    
  5. To reset the password, type passwd username where you replace username with the username you use to login with.

  6. You'll be prompted to type a new password. When you type the password you will get no visual response acknowledging your typing to prevent other people from seeing your password as you type it. Type your new password and press Enter.

  7. You'll be prompted to type your new password again as a check to make sure that you have typed it correctly. Type your new password again and press Enter.

  8. You will see a message that says: passwd: password updated successfully showing that your password has been successfully reset. If Kali Linux is installed on an SSD, type sync to force changed blocks to disk and update the super block.

  9. Type exit to return to the recovery menu.

  10. From the Recovery Menu select resume Resume normal boot to resume booting normally.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How to reset Kali linux root password

From Dev

How to change default root password for Live Kali Linux - USB persistence

From Dev

Kali Linux: On install, designated root password cannot login - incorrect password

From Dev

During the installation of Kali Linux when I set username and password, this user is root user or non-root user?

From Dev

How to reset kali linux password in windows subsystem for linux

From Dev

How to get password for Linux

From Dev

How to get airmon-ng on Kali Linux?

From Dev

Can't connect using ssh after enabling it on Kali Linux using the root user and password

From Dev

How to upgrade Kali Linux

From Dev

Default password for Kali Linux on Windows 10?

From Dev

Live Kali Linux root/toor login not working

From Dev

Live Kali Linux root/toor login not working

From Dev

What is the difference between /root and /home in Kali linux

From Dev

Adding OpenVPN keys to Kali Linux without root

From Dev

How do I get a "my computer" icon on the desktop in Kali linux?

From Dev

How to get usb to work on Virtual Box Kali Linux

From Dev

How linux users change their password without root privilege?

From Dev

how to shutdown a linux machine, including the root password, in 1 line?

From Dev

How to disable running Firefox as root without password Linux?

From Dev

how to hide icons from the Desktop in Kali Linux (all folders in the root appears in the desktop)

From Dev

Set root password AMI linux

From Dev

Change the root password of a Linux image

From Dev

How to use linux to not get crazy with root privileges

From Dev

linux-deploy-root-access-problem-with-kali-linux

From Dev

How to install updates in Kali Linux

From Dev

How to change font on Kali Linux?

From Dev

How to install Kdenlive on Kali Linux?

From Dev

How to install AutoCAD in Kali Linux

From Dev

How to install Kali Linux with grub?

Related Related

  1. 1

    How to reset Kali linux root password

  2. 2

    How to change default root password for Live Kali Linux - USB persistence

  3. 3

    Kali Linux: On install, designated root password cannot login - incorrect password

  4. 4

    During the installation of Kali Linux when I set username and password, this user is root user or non-root user?

  5. 5

    How to reset kali linux password in windows subsystem for linux

  6. 6

    How to get password for Linux

  7. 7

    How to get airmon-ng on Kali Linux?

  8. 8

    Can't connect using ssh after enabling it on Kali Linux using the root user and password

  9. 9

    How to upgrade Kali Linux

  10. 10

    Default password for Kali Linux on Windows 10?

  11. 11

    Live Kali Linux root/toor login not working

  12. 12

    Live Kali Linux root/toor login not working

  13. 13

    What is the difference between /root and /home in Kali linux

  14. 14

    Adding OpenVPN keys to Kali Linux without root

  15. 15

    How do I get a "my computer" icon on the desktop in Kali linux?

  16. 16

    How to get usb to work on Virtual Box Kali Linux

  17. 17

    How linux users change their password without root privilege?

  18. 18

    how to shutdown a linux machine, including the root password, in 1 line?

  19. 19

    How to disable running Firefox as root without password Linux?

  20. 20

    how to hide icons from the Desktop in Kali Linux (all folders in the root appears in the desktop)

  21. 21

    Set root password AMI linux

  22. 22

    Change the root password of a Linux image

  23. 23

    How to use linux to not get crazy with root privileges

  24. 24

    linux-deploy-root-access-problem-with-kali-linux

  25. 25

    How to install updates in Kali Linux

  26. 26

    How to change font on Kali Linux?

  27. 27

    How to install Kdenlive on Kali Linux?

  28. 28

    How to install AutoCAD in Kali Linux

  29. 29

    How to install Kali Linux with grub?

HotTag

Archive