1

I recently updated my Kali to Sana and I am unable to login as root using my old credentials.

I am able to login to the Console with the same username and password but I am not able to login using the GUI interface (gdm3).

I tried changing the password from console and still no change. I also created a new account and tried logging in using the new account but still no use. I also tried to Autologin by editing /etc/gdm3/daemon.conf but still no effect.

2
  • package kali-root-login - Bits of configuration to allow root logins – user857990 Feb 5 '16 at 7:24
  • Also - sometimes it might need additionally editing /etc/gdm/custom.conf file and include AllowRoot=true – user857990 Feb 5 '16 at 8:04
4

Log into the terminal (using Ctrl+Alt+F1) as root, edit the file /etc/pam.d/gdm-password and comment out the line

auth required pam_succeed_if.so user != root quiet

by putting a # character at the beginning of the line. Then reboot and you will be able to connect.

This solution came from official kali linux forum (https://forums.kali.org/showthread.php?26745-Can-t-login-after-Upgrade-to-kali-sana) and official bug reports (https://bugs.kali.org/view.php?id=2573)

1
  • You can avoid full reboot just by doing service gdm restart – Tawnos Sep 7 '15 at 4:06

Not the answer you're looking for? Browse other questions tagged or ask your own question.