CentOS7.0 uses root to log in to the desktop

藏色散人
Release: 2021-02-12 09:16:12
forward
4642 people have browsed it

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  #你想自动登录的用户名
Copy after login

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!

Related labels:
source:csdn.net
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!