How to add root permissions to users in linux

王林
Release: 2020-02-15 17:05:47
Original
5669 people have browsed it

How to add root permissions to users in linux

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

## Allow root to run any commands anywhere
root    ALL=(ALL)     ALL
tommy   ALL=(ALL)     ALL
Copy after login

(Online learning video recommendation: linux video tutorial)

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

Then use the command su to obtain root permissions to operate.

Related tutorial recommendations: linux tutorial

The above is the detailed content of How to add root permissions to users in linux. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template