Home  >  Article  >  Operation and Maintenance  >  CentOS7.0 uses root to log in to the desktop

CentOS7.0 uses root to log in to the desktop

藏色散人
藏色散人forward
2021-02-12 09:16:124537browse

The tutorial column of centos below will introduce to you how to log in to the desktop using root in CentOS7.0. I hope it will be helpful to friends in need!

CentOS7.0 uses root to log in to the desktop

In CentOS newer versions of Linux distributions, logging in with the root account is not allowed by default gnome Graphical user desktop, so after logging in, ordinary users can use su root on the terminal to temporarily obtain root privileges. Although we set up the root user during installation, we default to the root user after logging in through the desktop. Some commands need to be completed using sudo.

So, how to log in to the desktop with real root?

vi /etc/gdm/custom.conf

在[daemon]下面添加:
[daemon]
AutomaticLoginEnable=True
AutomaticLogin=root  #你想自动登录的用户名

Save and then restart.

When logging in to the desktop, do not click on the user name directly, but select "not list", then enter root and password to enter.

The above is the detailed content of CentOS7.0 uses root to log in to the desktop. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete