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

150,129

Solution 1

Try this in login window:

Username: root
Password: password

the "root" is exactly word "root", means root user

the "password" is the password you created during installation.

From: https://forums.kali.org/showthread.php?18428-Username-PW-login-failure-to-Kali-Linux

Solution 2

Boot your machine with a live CD, mount your hard drive, chroot to your hard drive and change password.

Reboot without the live CD, now your new password should give you access.

Solution 3

I found a way to get around the problem, try this as it worked for me: in the terminal type

sudo su

it will ask for your userpassword and make you root/superuser

some operating systems do not like you to login as root

Solution 4

Are you by any chance using a non-US keyboard layout and non-alphanumeric characters in your password?

I tried installing Kali Linux 1.0.7 with a Finnish keyboard layout and a password that included the section sign (§). I ran into the problem you describe (incorrect password at login page) three times before reinstalling for the fourth time using an alphanumeric root password, which fixed the issue.

At a quick glance, this doesn't seem to be a known Debian bug, and right now I have no time to test if it applies there as well, so maybe it's specific to Kali Linux.

Share:
150,129
J.W.F.
Author by

J.W.F.

Updated on September 18, 2022

Comments

  • J.W.F.
    J.W.F. over 1 year

    I found an old laptop lying around and I figured I would install Kali Linux on it to learn more about penetration testing and to try to break into my servers for practice and learning more about creating a secure network.

    I used unetbootin to install the Kali Linux ISO I downloaded via the torrent from their site, and the install to my flash drive went successfully.

    On the laptop I was wanting to put Kali on, I went into the BIOS and ordered the USB to be the priority to boot from. After that, I booted live into Kali and installed the operating system from there. It loaded up the graphical install page from Kali and the install seemed to go successfully.

    However, once the installation was successful, it would take me to the login page and prompt me for the root password. I would type in the root password I had used during the initial setup, yet it gives me the Incorrect password prompt, even though I am 100% sure I was using the password I had installed at the start.

    To confirm this, I tried reinstalling from the live boot multiple times, using the same password from the first attempt and even just doing "password" for testing purposes. Neither one worked.

    As a final measure, I opened up the GParted Partition Editor from the Kali live boot and deleted all of the partitions on my laptop's hard drive. From there, I went through the Kali installation process again successfully, only to encounter the EXACT same issue as before when trying to log in after installation.

    Does anyone know what is going on? I am clueless as to what I could do to be able to log into my Kali installation... thanks.

    • J.W.F.
      J.W.F. almost 10 years
      I have tried running through the installation process to no avail... is there any way to figure out what this issue is?
    • Admin
      Admin almost 10 years
      First you should type "root" as your user name...and then when it ask for password type the password you enter first....
    • terdon
      terdon almost 10 years
      Are you sure you did not create a different user during the installation? Is root the only user? Is root the username you see on the login screen? Did you set up the keyboard layout correctly? If you have a non-US keyboard, the login screen might not be aware of that. Try entering the password as though you had a US layout.
    • J.W.F.
      J.W.F. almost 10 years
      @SwapnilJain I did attempt try logging in as the root user, unfortunately. @terdon Yes, root was the only user on my system. root was also the only user on the startup screen. I did setup the keyboard correctly for my keyboard (US standard), as I was able to try logging in as another user and type a fake username with my keyboard layout.
    • terdon
      terdon almost 10 years
      Most systems won't allow you to log in from the GUI as root. Try dropping to a tty (Ctrl+Alt+F1 or one of the other F keys) and logging in there. Does that work?
    • J.W.F.
      J.W.F. almost 10 years
      @terdon Unfortunately, I do not have access to the same installation that I had when I originally asked the question, as I did need to use the computer. The thing that makes me curious is that on virtual machines (e.g. Boxes) or on other devices, logging into root via the GUI was possible on Kali.
    • drs
      drs about 9 years
      @JustinUpton suggests "Try using root as the user and toor as the password."
    • sid_09
      sid_09 over 7 years
      I might be bit late in this party and as I don't have enough permissions to write an answer, I am just commenting in case somebody finds it helpful. While setting up kali linux, you set up the domain, host and password; but not the username. So if you are stuck, just use the username "root" and give the password that you gave during installation. Worked for me. But make sure, you create a proper user after logging in.
  • Anthon
    Anthon almost 10 years
    Did you do this on Kali Linux as well? Which version?
  • J.W.F.
    J.W.F. almost 10 years
    Am I able to log in to the terminal from the login screen? It prompts me for a password as soon as it starts up. I see the "Switch user" option, but still nothing like a terminal unless I'm just not seeing clearly.
  • J.W.F.
    J.W.F. almost 10 years
    @Anthon: I am using 1.0.6 if I recall correctly.
  • SDsolar
    SDsolar over 6 years
    With Kali initial installs with failed logins, there is a very good chance that the root password is root backwards: toor
  • SDsolar
    SDsolar over 6 years
    I would add that once you accomplish this then you can use the passwd command to make sure your passwords are what you think they are. Also you can use adduser
  • CodyChan
    CodyChan over 6 years
    @SDsolar yes, indeed, if you use Live USB or import provided Kali virtual image into Virtual Machine, the default password for root is toor. But since he mentioned "root password I had used during the initial setup", I guess the poster had assigned a password for root user. Anyway, since the poster accepted my answer, I believed my anwser worked.
  • SDsolar
    SDsolar over 6 years
    You are really onto something here. And if you think THIS is bad, just wait until it happens to you at the BIOS level. Turns out that once you have set a startup password with one keyboard you can't count on other keyboards to be recognized, even if they are both US. I've recently had to hunt down the keyboard I used to set the password when I changed to a different one. Had I not been able to find it I would have had to use the motherboard jumper to make it reset the BIOS. But now I am stuck with that older keyboard until I find time to jumper it and reset it with the newer keyboard.