[linux] How to set up and use sudo to assign permissions and elevate the permissions of ordinary users.

  •  The topic of this issue: Solve the problem that sudo cannot be used under linux.
  • Blog homepage: Xiaofeng
  • Share the editor's knowledge and problems encountered in Linux
  • 小编的能力有限,出现错误希望大家不吝赐

 

We all know that the permissions of ordinary users are always restricted, and some cannot be moved. At this time, we need to use the sudo command to simply elevate our permissions. The premise is that we set this ordinary user as a trusted user in advance.

The first step is to confirm that you are currently the root user.

 The second step is to open the /etc/sudoers system file with vim

 The third step is to modify the system configuration file and add trusted users

 Notice:

  • It must be opened by root. If we open it with a normal user, it will be blank.
  • Our system must have the sudoers file, if you can’t find it, you must have entered it wrong.

Guess you like

Origin blog.csdn.net/zxf123567/article/details/128508229