Kali Linux is a Linux-based penetration testing arsenal that aids security professionals in performing assessments in a purely native environment dedicated to hacking. Kali Linux is a distribution based on the Debian GNU/Linux distribution aimed at digital forensics and penetration testing use. It is a successor to the popular BackTrack distribution.
By default every Kali Linux version uses Gnome Display Manager (GMD3) which always shows a login screen in starting and root is the only user account in Kali Linux which doesn’t present any option to create another user during installation. But sometimes it might get tedious to type root password every time you login.
This tutorial will show you how to make a simple few line changes to allow your auto root login user at system start for both GNOME and KDE Environments.
For GNOME Environments, edit the following file and uncomment the both lines as shown in below screenshot.
Command: gedit /etc/gdm3/daemon.conf
# Enabling automatic login
AutomaticLoginEnable = true
AutomaticLogin = root
In case if you’ve some other user, then you can change the 3rd line and replace root with your username. (AutomaticLogin = yeahhub)
Make sure you Reboot the machine by typing either init 6 or reboot.
For KDE Environments, edit the following file and add the following lines to the end of the file.
Command: gedit /etc/kde4/kdm/kdmrc
As always reboot to confirm if auto login root user is working or not.