How to Create a root user in linux

Source: Internet
Author: User
How to Create a root user in linux-Linux general technology-Linux technology and application information, the following is a detailed description. In linux, how does one create a root user? Can I use this new user to delete the root user?

Create a common user
Modify/etc/passwd user
Change the user id to 0.
You can delete the root user.

You must create a Super User.

SHELL determines whether a user is a superuser based on the user's UID. If the user's UID is 0, it is a superuser.

In Linux, the most important thing is the id value, not the login name. For example, to create an admin user using the njbfy (bfy) method, admin is the Super administrator, which is actually the same as root. You can use su admin in shell to check whether it displays root. Because it is determined by uid. This is of no use to others, but creating a Super User can avoid forgetting the root password.

The user in group 100 has the root permission.
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.