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.

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

How to use linux to not get crazy with root privileges

분류에서Dev

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

분류에서Dev

Impossible to login to Kali Linux with non-root user

분류에서Dev

How to remove root password on Debian?

분류에서Dev

How to integrate Kali Linux features in Ubuntu

분류에서Dev

How to install guest additions on Kali Linux 4.15.0

분류에서Dev

How to remove all Kali Linux tools?

분류에서Dev

How to reset a lost root password in SmartOS

분류에서Dev

How to recover the root password on ubuntu server

분류에서Dev

How to recover the root password on ubuntu server

분류에서Dev

Live Kali Linux root / toor 로그인이 작동하지 않음

분류에서Dev

Live Kali Linux root / toor 로그인이 작동하지 않음

분류에서Dev

How to add shortcuts for installed apps in Kali Linux main menu?

분류에서Dev

Kali Linux: Cursor not showing

분류에서Dev

Kali Linux Install Issue

분류에서Dev

Kali Linux Glitched Boot

분류에서Dev

VMWare error with Kali Linux

분류에서Dev

Kali Linux not Updating

분류에서Dev

Kali Linux에서 / root와 / home의 차이점은 무엇입니까?

분류에서Dev

I have setup apache server, how to reset root password?

분류에서Dev

Kali Linux는 root가 아닌 사용자로 로그인 할 수 없으며 root에 대해 불평하는 wireshark

분류에서Dev

how to enable root user in linux(Ubuntu)?

분류에서Dev

"apt-get update"실패? (Virtual Box가있는 Kali Linux)

분류에서Dev

Kali linux on Gemini PDA : vim error when `apt-get upgrade`

분류에서Dev

Gemini PDA의 Kali Linux :`apt-get upgrade`시 vim 오류

분류에서Dev

Kali Linux: apt-get update returns "Hash Sum mismatch" error

분류에서Dev

Kali Linux에서 apt-get 업데이트 문제

분류에서Dev

how do I save a ftp password but get the plain password later

분류에서Dev

start script at boot for kali linux

Related 관련 기사

  1. 1

    How to use linux to not get crazy with root privileges

  2. 2

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

  3. 3

    Impossible to login to Kali Linux with non-root user

  4. 4

    How to remove root password on Debian?

  5. 5

    How to integrate Kali Linux features in Ubuntu

  6. 6

    How to install guest additions on Kali Linux 4.15.0

  7. 7

    How to remove all Kali Linux tools?

  8. 8

    How to reset a lost root password in SmartOS

  9. 9

    How to recover the root password on ubuntu server

  10. 10

    How to recover the root password on ubuntu server

  11. 11

    Live Kali Linux root / toor 로그인이 작동하지 않음

  12. 12

    Live Kali Linux root / toor 로그인이 작동하지 않음

  13. 13

    How to add shortcuts for installed apps in Kali Linux main menu?

  14. 14

    Kali Linux: Cursor not showing

  15. 15

    Kali Linux Install Issue

  16. 16

    Kali Linux Glitched Boot

  17. 17

    VMWare error with Kali Linux

  18. 18

    Kali Linux not Updating

  19. 19

    Kali Linux에서 / root와 / home의 차이점은 무엇입니까?

  20. 20

    I have setup apache server, how to reset root password?

  21. 21

    Kali Linux는 root가 아닌 사용자로 로그인 할 수 없으며 root에 대해 불평하는 wireshark

  22. 22

    how to enable root user in linux(Ubuntu)?

  23. 23

    "apt-get update"실패? (Virtual Box가있는 Kali Linux)

  24. 24

    Kali linux on Gemini PDA : vim error when `apt-get upgrade`

  25. 25

    Gemini PDA의 Kali Linux :`apt-get upgrade`시 vim 오류

  26. 26

    Kali Linux: apt-get update returns "Hash Sum mismatch" error

  27. 27

    Kali Linux에서 apt-get 업데이트 문제

  28. 28

    how do I save a ftp password but get the plain password later

  29. 29

    start script at boot for kali linux

뜨겁다태그

보관