Ubuntu Keylin 14.04 How do I log in with root user?

Source: Internet
Author: User
Tags manual

Ubuntu is a desktop application based Linux operating system. Ubuntu is based on the Debian distribution and GNOME desktop environment, and since version 11.04, the Ubuntu release has abandoned the GNOME desktop environment to unity, unlike Debian because it publishes a new version every 6 months.

Ubuntu-kylin China's customized version of the Ubuntu Desktop Linux system, integrated into China's unique characteristics.

Ubuntu defaults to being unable to log on with root, which is cumbersome for individuals without the root user privileges. Here I will introduce Ubuntu Keylin 14.04 to open root login; If you need a classmate, just study together!!!

1. Set password for root user

Installation complete If you need to log in as root, you can open the terminal to enter the following command: #设置root密码sudo passwd root, enter the current user password, and then enter two times the set root password;

2, #切换到root用户sudo-S. Enter root password, enter root terminal

3, set the login panel to enable it to achieve root login

To log in using root in the login interface, edit the/usr/share/lightdm/lightdm.conf.d/50-in the/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf directory ubuntu.conf files, such as without this file, create/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf directly into/usr/share/lightdm/lightdm.conf.d/


Edit 50-ubuntu.conf file content is final: [Seatdefaults]user-session=ubuntu


After the modification, execute the reboot command to restart Ubuntu for effective;

Automatically log in as root after startup autologin-user=root# manually enter the username and password for the login system greeter-show-manual-login=true# Disable the Guest user Allow-guest=false

4. Restart Ubuntu

The command line enters reboot carriage return, waits for reboot, and the default is logged in by the root user after startup.

Note: Learning users if the use of Vim is unfamiliar to use gedit is very convenient.

Related Article

E-Commerce Solutions

Leverage the same tools powering the Alibaba Ecosystem

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.