The method of adding root permissions to users by linux
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!