Ubuntu system with root user login

Source: Internet
Author: User

Ubuntu system with root user login tutorial:

1. Open the terminal, first use the command sudo passwd root and then enter the password

2. Enter Su-Toggle user Rights

3. Two ways of configuration

1) New lightdm.conf file can be created

$gedit/etc/lightdm/lightdm.conf

Fill in the following content, then restart, select "Login" to enter the root user password:

[Seatdefaults]

User-session=ubuntu

Greeter-show-manual-login=true

2) You can also edit the 50-ubuntu.conf file

$gedit/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

Then add two lines of code

Greeter-show-manual-login=true

Allow-guest=false

After the modification, save the file, and finally restart the system can be used to log on to the Ubuntu system root.

Greeter-show-manual-login=true
This means that the user is allowed to enter their user name and password at logon.
Then set the login password for the root user, set the way for Ubuntu to set the password for the root user for the first time
Once the setup is complete, you can log on to the desktop using the root user after rebooting the system.


4, configure the root automatic login

Can edit lightdm.conf

$gedit/etc/lightdm/lightdm.conf

Add the following content, the same reboot, log in with the root login:

[Seatdefaults]

Autologin-user=root

Greeter-session=unity-greeter

User-session=ubuntu

Greeter-show-manual-login=true

Allow-guest=false

Ubuntu system with root user login

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.