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
Method/Step
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.
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.
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