当前位置:网站首页>xxx is not in the sudoers file. This incident will be reported
xxx is not in the sudoers file. This incident will be reported
2022-07-27 04:18:00 【Joseph25】
1. Switch to root Under the user
2. add to sudo Write permission of file , The order is :
chmod u+w /etc/sudoers
vi /etc/sudoers
Find this line root ALL=(ALL) ALL, Add it below xxx ALL=(ALL) ALL ( there xxx It's your user name )
ps: Here you can sudoers Add any of the following four lines
youuser ALL=(ALL) ALL
%youuser ALL=(ALL) ALL
youuser ALL=(ALL) NOPASSWD: ALL
%youuser ALL=(ALL) NOPASSWD: ALL
first line : Allow users youuser perform sudo command ( You need to enter a password ).
The second line : Allow user groups youuser User execution inside sudo command ( You need to enter a password ).
The third line : Allow users youuser perform sudo command , And do not enter the password when executing .
In the fourth row : Allow user groups youuser User execution inside sudo command , And do not enter the password when executing .
4. revoke sudoers File write permission , command :
chmod u-w /etc/sudoers
So ordinary users can use sudo 了
边栏推荐
- Session&Cookie&token
- An online duplicate of a hidden bug
- The real digital retail should have richer connotation and significance
- C语言学习笔记 —— 内存管理
- ApacheCon Asia 预热直播之孵化器主题全回顾
- B. ICPC Balloons
- 面试题 16.05. 阶乘尾数
- CloudCompare&PCL 匹配点中值(或标准差)距离抑制
- C language learning notes - memory management
- JMeter interface test (login, registration)
猜你喜欢

3381. Mobile keyboard (Tsinghua University postgraduate entrance examination machine test question)

科目三: 济南章丘三号线

Detailed analysis of trajectory generation tool in psins toolbox

什么是动画效果?什么是过渡效果?

Skywalking distributed system application performance monitoring tool - medium

"Gonna be right" digital collection is now on sale! Feel the spiritual resonance of artists

Apachecon Asia preheating live broadcast incubator theme full review

Redis面试题(2022)

NFT digital collection system development: old brand literary magazines play with trendy Digital Collections

Parallels Desktop启动虚拟机“操作失败”问题解决
随机推荐
ArrayList与LinkedList区别
Session&Cookie&token
[MySQL series] MySQL index transactions
想要获得 Apache 官方域名邮箱吗?专访 Apache Linkis 五位新晋 Committer告诉你怎么做
Leetcode daily question: relative sorting of arrays
Summer meal | rich people are different from what you think (day 5) + power system power flow simulation (documents and matlab code)
"Gonna be right" digital collection is now on sale! Feel the spiritual resonance of artists
整理字符串
【小样本分割】MSANet: Multi-Similarity and Attention Guidance for Boosting Few-Shot Segmentation
JVM原理简介
Daily question 1: parity tree
[OBS] dynamic bit rate: bit rate estimation
VR panorama gold rush "careful machine" (Part 1)
Elastic开源社区:开发者招募
每日一题:奇偶树
三种常见的移动底盘运动学模型分析
Which securities company has the lowest handling charge? Is it safe to open an account on your mobile phone
【OBS】circlebuf
2022年危险化学品经营单位主要负责人复训题库及答案
A. Parkway Walk