Normal user is promoted to root user

Source: Internet
Author: User

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

Related Article

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.