How can a common user become a root user after being promoted to a root user using a common user to log on to Linux? Perform the following operations: sudogedit/etc/passwd, find the section describing the user, and change its id to 0. After saving the file, log out of the user and log on to the user again. at this time, the user is already ro... the normal user is promoted to the root user. how can this user become the root user after logging on to Linux? Perform the following operations: sudo gedit/etc/passwd, find the section describing the user, and change its id to 0. Save and log out of the user. log on to the user again. The user is already the root user. For example, in passwd, find the following line: lulipeng: x: 1000: 1000:,:/home/lulipeng: /bin/bash: change the positions of both 1000 to 0. Note: some strange problems may occur after the id is changed. the method for canceling the cancellation is as follows: 1. enter sudo restart lightdm on the Terminal 2. find the 'unlogin' option in the upper-right corner of the desktop 3. press the power key directly.
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