CentOS automatically logs in as root user when booting

How to make CentOS automatically log in as root user when booting?

Specific steps are as follows:

1. Switch to root and edit the custom.conf file in gdm under etc

        Basic knowledge:

                vi: vi is a text mode editor in linux

2. Enter the script to automatically log in to the root user after booting.

        Basic knowledge:

                Enter editing mode: Enter i to edit the document

                Save and exit: Press Ese first, then enter: wq!

Then you enter in the terminal: shutdown -r now to restart

 If you find that the identifier is #, it means that you have successfully logged in as the root user, and you do not need to manually switch to root in the future.

Guess you like

Origin blog.csdn.net/CaptainDrake/article/details/126784349