Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of adding root permissions to users by linux

Shulou Source: shulou.com Published: 2022-06-03 06:42:42 09月21日 Update

This article mainly introduces in detail the method of adding root permissions to users by linux. The sample code in this article is very detailed and has a certain reference value. Interested friends can refer to it.

First open the / etc/sudoers file, find the following line, and add a line under root, as follows:

# # Allow root to run any commands anywhereroot ALL= (ALL) ALLtommy ALL= (ALL) ALL

After the modification, you can now log in with your tommy account.

Then use the command su, you can get root permission to operate.

These are the details of linux's method of adding root permissions to users. Have you gained anything after reading it? If you want to know more about it, welcome to the industry information!

Tags: Permissions methods users one line content references code value interests commands guys buddies that is files more examples articles industries accounts information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Docker macOS Linux MySQL