Ubuntu 16.04 Set Root user Login graphical interface

Source: Internet
Author: User

The default for Ubuntu is that the root user cannot log on to the graphical interface, and can only log on to other users. This is very troublesome, because the issue of permissions, can not copy delete files at will, with gedit edit files often can not save, can only use Vim to edit.

Here's an example of Ubuntu version 16.04:

1, open the terminal

2, input sudo vi/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

3, add one line: Greeter-show-manual-login=true save close.

4, set the password to the root, input in the midrange: sudo passwd root.

5, if you now use the root user in the GUI login will be error, read/root/.profile error: Mesg:tty n also need to do the following modifications

Sudu Vi/root/.profile

Find MESG N

Replace with tty-s && mesg n

Reboot the system.

You can log in with the root user.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.