Get Super User Permissions On CentOS

Source: Internet
Author: User

Get Super User Permissions On CentOS

For the sake of security, linux imposes a lot of restrictions on common user permissions, but we still need Super User Permissions, which is similar to administrator permissions in windows. This article briefly introduces how to obtain super user permissions in centos.

1. Log On directly as the root user

On the login page, select "other" and enter the user name root and password to log on directly.

2. Normal users enter the superuser status

Enter su-on the terminal, and then enter the password,

3. Use superuser permissions as common users

Some commands can only be executed by the root user. In this case, you only need to add sudo before the command. However, by default, centos does not grant sudo permissions to common users. You need to edit the/etc/sudoers file to add it. The method is as follows:

Python 1234su-// enter the root user State chmod a + w/etc/sudoers // modify the file to the writable state gedit/etc/sudoers // open the file root ALL (ALL) after ALL, add the username root ALL = (ALL) ALL // note the space in the middle.

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.