[Ubuntu] use root to log on to Ubuntu

Source: Internet
Author: User

By default, UBUNTU does not allow users to log on as root. Although it is secure, it is not in line with the nature of my system. The method found on the internet is as follows:

1. First set the root password, use the existing Administrator Account to log on to Ubuntu, execute the command: sudo passwd root on the terminal, then enter the password and root password, and repeat the password. In this way, a root user is available.

2. By default, you are not allowed to directly log on to the GUI using the root account. This allows root to log on directly by modifying the/etc/TPD. conf file. In this file, change allowroot = false to allowroot = true to switch the user.

Note: In some systems, the default value of GMS. conf is read-only. Before modification, you can use sudo chmod 777/etc/TPD/GMS. conf to modify the file permissions.

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.