How to log in with the root account in Ubuntu

Source: Internet
Author: User


One
Because when you need root permissions, you can use sudo. If you really need to enable the root account in Ubuntu, then you might want to do the following:

1. Reset the root password:

$sudo passwd Root #按照提示输入两次新的密码 and confirm it.

2. Enable Root User login:

In the system-system Management-login interface to enable login display user list, restart the system, log in when the user selects other, and then enter root, enter the password, you can enter

Then, when you restart the system, you can log in with root. If you want to disable the root account, execute the following command:

$sudo passwd-l Root


Two
The root account in Ubuntu is disabled by default. In this case, if you want to use root permissions to do something, you will need sudo instructions. For some friends, they may need to activate the root account in Ubuntu.

The process for activating the root account in Ubuntu is as follows:

1. After the terminal executes the sudo passwd root command, you will be prompted to set a new root account password.
2. Click the Login Window menu, System-Preferences, and switch to the Security Options page and select the Allow local System Administrator Login option under it.

After performing these two steps, you can log in to the Ubuntu system using the root account.

If you want to disable the root account again, you can execute sudo passwd-l root.


Three
If you always want to always use root can also "sudo-s".


Iv. Ubuntu12.04lts start interface using root login


Ubuntu12.04lts installation After the start interface only a normal user and guest user login, there is no place to enter the user name, how to do? Just make the following changes:
A) Edit config file: sudo gedit/etc/lightdm/lightdm.conf
b) Add one line: greeter-show-manual-login=true
c) Add another line: Allow-guest=false, adding complete


d) Save, restart the system to

V. Ubuntu14.04 how to enable the interface root account login?
A) reset root password First, no more, sudo passwd root
b) Modify the configuration file sudo gedit/usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf
Added: Greeter-show-manual-login=true Save and close
c) Restart the system
--
Everyone is making progress, we have no reason to stop!

NetEase VIP Mailbox

You may also like:
Ubuntu Restore root User password
Forgot MySQL root password solution under Ubuntu
Linux users,/etc/passwd, and/etc/shadow files
How do I unregister my survey account?
Linux user groups,/etc/group files, and account-related operations commands

How to log in with the root account in Ubuntu

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.