PDA

View Full Version : Root Login Issue



rets34
2020-01-03, 20:24
I recently updated my Kali box and after a reboot I can't sign in with the root account using the GUI, I've gone in with tty and single user mode and can sign in just fine there with the same password. I've even reset the password and still can't sign in. It just gives "Sorry, that didn't work. Please try again." like my password is wrong, but i've gone into tty and did a "passwd root" & passwd and reset it and can't get signed in.

rets34
2020-01-03, 21:13
Found the solution online right after posting this :rolleyes:.





Log in as a regular user and open a terminal and run
su -c 'gedit /etc/pam.d/gdm-password'
Change
auth required pam_succeed_if.so user != root quiet to
# auth required pam_succeed_if.so user != root quiet
Save the file

Chayim
2020-01-03, 21:25
After entering password for su it gives an error Authentication failure.

Chayim
2020-01-03, 21:34
You wrote:
Change
auth required pam_succeed_if.so user != root quiet to
# auth required pam_succeed_if.so user != root quiet

There's no change. It's the same text.

Chayim
2020-01-03, 21:38
Found the solution online right after posting this :rolleyes:.


What did you change? its the same text

axzhandul
2020-01-04, 03:55
This is legit, I have had the same exact problem. I updated Kali Rolling 2019.3 and root password did not work. I was operating from within VMware Fusion and had a pre-update snapshot, so I restored the snapshot, and booted again. I logged in again as root in the pre-update snapshot of Kali just fine. I then performed the update again just to double-check that it indeed was the update — it was. After updating a second time, once again, the root password didn’t work. Something about the update must either kill the proper authentication mechanism or kills the password itself.

memanemanoj
2020-01-04, 05:48
Type "Startx" at tty1 or
Try to reinstall lightdm and see if it works.
sudo apt-get update
sudo apt-get remove lightdm
sudo apt-get install lightdm

Linux Distros
2020-01-04, 14:26
Found the solution online right after posting this :rolleyes:.


Did not solve the problem.

johanneke
2020-01-05, 01:10
this is the easy way apt install kali-root-login

Thiviyan
2020-04-12, 19:49
this is the working solution now...
i think we will not be able to login to root in gui in future by default.

LorPen
2020-06-09, 04:32
this is the working solution now...
i think we will not be able to login to root in gui in future by default.

# su -c 'gedit /etc/pam.d/gdm-password'
And but # before " auth required pam_succeed_if.so user != root quiet_success "
reboot and login with root !

KingZ
2020-06-13, 07:50
Found the solution online right after posting this :rolleyes:.



Thanks it worked.
For everyone asking what did he do, he just added a hashtag before the command making it a comment and hence it doesn't execute .