How to enable the "Ubuntu" root account

Source: Internet
Author: User

Ubuntu root user is disabled by default and needs to be opened manually.

In general, all operations under Ubuntu are not root user, because sudo reasonable use, to avoid the root user error operation.

"Error type" with the Su-command switch to root the following occurs (note bold font):

[Email protected]:~/desktop$ Su-

Password:

Su:authentication failure

[Email protected]:~/desktop$

"Workaround" Root account activation method:

1. Unlock the root and set the password

Open terminal input: sudo passwd

Password: <---Enter your current user's password

Enter New UNIX Password: <---The new root user password

Retype new UNIX Password: <---Repeat the root user password

passwd: Password has been successfully updated

2. Change login, allow root login

Open System > System Management > login window)

Click the Security Options page and select Allow local administrators to log on.

3. Log off the current user and log in as root

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


This article is from the Linux OPS blog, so be sure to keep this source http://xuding.blog.51cto.com/4890434/1693120

How to enable the "Ubuntu" root account

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.