Ubuntu Modify default root account Login

Source: Internet
Author: User

Install complete if you want to log in as root, open the terminal and enter the following command:
#设置root密码
sudo passwd root
#切换到root用户
Sudo-s

To log in with the login interface using root, you can edit the lightdm.conf file in the/etc/lightdm/directory, if you do not have this file, directly create

Vi/etc/lightdm/lightdm.conf

The Final Document content is:
[Seatdefaults]
#启动后以root身份自动登录, if you need to enter a password to log in, you can comment on the following line
Autologin-user=root
Greeter-session=unity-greeter
User-session=ubuntu
#手工输入登陆系统的用户名和密码
Greeter-show-manual-login=true
#禁用guest用户
Allow-guest=false

Restart after the prompt after the root permission to automatically log on, found that the following prompt:

Error found when Loading/root/.profile

Stdin:is not a TTY

............

Workaround: In the terminal with Command gedit/root/.profile, open the file and find "Mesg n",

Change it to "Tty-s && mesg N



Ubuntu Modify default root account 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.