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.