Kali 2020 defaults to the kali user, which is very fucking annoying to use. Every time you have to sudo su to change to the root user, and the root user still fails to log in
Solution
1: Open the terminal. change root password
sudo passwd root //Enter this magic code first
2Enter the old password
3 Enter the new password, repeat
4: Restart kali, log in with the root user, and enter the new password in step 3
------------------------------------------------------------------------------
After the modification is completed, root@kali defaults to white color, which is very difficult to use, and then change the white root@kali to red
Modify the color:
1: Copy the .bashrc in the kali directory to the root directory
cp /home/kali/.bashrc /root //If this string of code reports an error, please change kali at cp /home/kali to your current user name
2: Replace terminal color
source .bashrc
Exchange group 632816725
----------------------centos7 modify the default login user to root----------------------------------
1. Modify the configuration, enter the third and fourth lines in the module, and then restart
vi /etc/gdm/custom.conf
# GDM configuration storage
[daemon]
AutomaticLoginEnable=TrueAutomaticLogin=root:
[security]
[xdmcp]
[greeter]
[chooser]
[debug]