Skip to content

Instantly share code, notes, and snippets.

@intrd
Last active March 18, 2026 00:50
Show Gist options
  • Select an option

  • Save intrd/12c12f6c863b3367f8c2249edd78b26c to your computer and use it in GitHub Desktop.

Select an option

Save intrd/12c12f6c863b3367f8c2249edd78b26c to your computer and use it in GitHub Desktop.
Kali light xfce4 root autologin (works after lightdm update)
## Kali light xfce4 root autologin (works after lightdm update)
# @author intrd - http://dann.com.br/
# @license Creative Commons Attribution-ShareAlike 4.0 International License - http://creativecommons.org/licenses/by-sa/4.0/
Root autologin is broken after lighdtdm update, fix by doing this:
nano /etc/lightdm/lightdm.conf
at [Seat:*] group uncomment/edit:
autologin-user=root
autologin-user-timeout=0
now..
nano /etc/pam.d/lightdm-autologin
change:
auth required pam_succeed_if.so user != root quiet_success
to:
auth required pam_succeed_if.so user != anything quiet_success
all done! :)
@pawiromitchel

Copy link
Copy Markdown

Many thanks, worked on Kali 2019.3

@abd3lraouf

Copy link
Copy Markdown

Works on kali 2020.2

@krystiangorecki

Copy link
Copy Markdown

Thanks! Works on Kali 2020.3

@yutaide

yutaide commented Sep 29, 2020

Copy link
Copy Markdown

Thank you. It works on Raspberry Pi OS desktop (64bit beta) RPI4B
2020-09-29

@testbughub

Copy link
Copy Markdown

Good god man, thank you for this.
I've been pulling my hair out for half a day trying to get auto login to work.

@rushtoshankar

Copy link
Copy Markdown

Works well for me. Thanks a lot.

@Galertaw

Copy link
Copy Markdown

nice. thx!

@Artanovskaya

Artanovskaya commented Jun 11, 2022 •

Copy link
Copy Markdown

cool

@krystiangorecki

krystiangorecki commented Mar 18, 2026 •

Copy link
Copy Markdown

Thanks! Still works in Kali 2025.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment