How to elevate a normal user to root under Ubuntu

Source: Internet
Author: User

In Ubuntu system operation, we often use the system permissions, because of insufficient permissions, resulting in some operations very troublesome. To get permission, the longest way to use is to use the sudo instruction, but it is more troublesome to use it back and forth, does it directly elevate our user rights? The answer is--yes.

Open HyperTerminal, input instruction sudo gedit/etc/passwd, enter;

Find the line where our user name is located, and modify the ID value of the current user inside. For example, my current user is crystal.

Then find the Crystal:x:1000:1000:crystal:/home/linuxidc:/bin/bash to change two 1000 to 0.

Finally, the Ubuntu system to log off, and then in the login username and enter your own user name and password, so landing is the root authority. This is because root has an ID value of 0.

After re-login, open HyperTerminal and discover that our user rights are already rooted.

How to elevate a normal user to root under 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.