Ubuntu12.04 how to use root to log on

Source: Internet
Author: User
Ubuntu12.04 how to use root to log on to Ubuntu12.04 without a root password. When we use the root permission, we generally use the sudo command. When Ubuntu12.04 is installed, the default value of the root account is...
How to use root to log on to Ubuntu 12.04 without setting the root password when installing Ubuntu 12.04. When we use the root permission, we generally use the sudo command. So when we have installed Ubuntu 12.04, what is the default password for the root account? The answer to www.2cto.com is simple: the root account has no password. Therefore, if you want to log on using the root account, you must first enable the account and reset or add a new password. The following steps will show you how to do this. First, open the terminal and run sudo passwd-u root # to enable our root account. if you regret it, run sudo passwd-l root to lock the root user again. Note: The password entered during sudo execution is your current user password, not the root password. In addition, make sure that your users have such permissions. the configuration file is in/etc/sudoers. Create a password for the root user: sudo passwd root # enter the password as prompted. the root password should be different from the password of other users, otherwise it will cause some trouble. Www.2cto.com the root user is disabled and has a password. how can I use root to log on? Run the following command: sudo sh-c 'echo "greeter-show-manual-login = true">/etc/lightdm. conf # This allows lightdm to manually enter the root user for logon. After the command is executed, restart the instance. click the logon button under lightdm and enter the root account and password to log on to the instance. We strongly recommend that you do not use root to log on to ubuntu and execute sudo passwd-l root to disable the root account. this is very insecure, for example, when you execute rm-rf/, you accidentally press enter before entering it, and then you delete the entire system. If you need the root permission, you can use sudo. you can execute sudo continuously for a period of time without entering the password. From 51CTO network

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.