ubuntu12.04 Modify login user as Root

Source: Internet
Author: User

Ubuntu 12.04 default is not allow root login, in the login window can only see normal users and guest login. After landing in the normal status of Ubuntu we need to make some changes, the normal user login, modify the system configuration file needs to switch to Super User mode, in the terminal window input: sudo-s. Then enter the password of the normal user login, enter the root user rights mode.

After execution: vi/etc/lightdm/lightdm.conf.

Greeter-show-manual-login=true  allow-guest= False  .  the entire configuration file that is modified is

[seatdefaults]
Greeter-session=unity-greeter
user-session= ubuntu
greeter-show-manual-login=true #手工输入登陆系统的用户名和密码
allow-guest=false   #guest login


Then we start account number:
Sudo passwd root
Enter the root account password as prompted.

Restart Ubuntu, login window will have " login " option, this time we can log in by root.

Autologin-user=root #自动以root登录
Autologin-user-timeout=0
Autologin-session=lightdm-autologin


After adding, save, restart the system is OK, directly to the root user login

ubuntu12.04 Modify login user as Root

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.