Centos7 uses root by default when booting

1. Use the root user to log in to the host that needs to be modified
2. Modify the configuration file: /etc/gdm/custom.conf
3. Add the following two lines of configuration to [deamon] in the configuration file:
AutomaticLoginEnable=True
AutomaticLogin=root
4. Save and exit Can

Guess you like

Origin blog.51cto.com/songsong0119/2575496