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.

Tools/Materials
    • Super terminal for Linux

Method/Step
    1. Open HyperTerminal, input instruction sudo gedit/etc/passwd, enter;

    2. 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.

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

    4. The result of the final change is:

      Crystal:x:1000:1000:crystal:/home/linuxidc:/bin/bash

      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.

    5. After re-login, open HyperTerminal to discover that our user rights are already root.

      END
Precautions
    • Modifying permissions is risky because everyone can make changes to your system after the change

    • To remember the user name, log out after you enter the user name

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.