当前位置:网站首页>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 03:05:00 【Joseph25】
1.切换到root用户下
chmod u+w /etc/sudoers
vi /etc/sudoers
找到这行 root ALL=(ALL) ALL,在他下面添加xxx ALL=(ALL) ALL (这里的xxx是你的用户名)
ps:这里说下你可以sudoers添加下面四行中任意一条
youuser ALL=(ALL) ALL
%youuser ALL=(ALL) ALL
youuser ALL=(ALL) NOPASSWD: ALL
%youuser ALL=(ALL) NOPASSWD: ALL
第一行:允许用户youuser执行sudo命令(需要输入密码).
第二行:允许用户组youuser里面的用户执行sudo命令(需要输入密码).
第三行:允许用户youuser执行sudo命令,并且在执行的时候不输入密码.
第四行:允许用户组youuser里面的用户执行sudo命令,并且在执行的时候不输入密码.
chmod u-w /etc/sudoers
这样普通用户就可以使用sudo了
边栏推荐
- Introduction to JVM principle
- Case when in MySQL returns multiple field processing schemes
- Is VR panoramic production a single weapon in the home decoration industry? Why is this?
- 二叉树的坡度
- ApacheCon Asia 预热直播之孵化器主题全回顾
- B. ICPC Balloons
- c# 获取uuid
- 3381. 手机键盘(清华大学考研机试题)
- E-commerce system combined with commodity spike activities, VR panorama continues to bring benefits
- The problem that prevented the installation of umi4 for one day has been solved
猜你喜欢
随机推荐
Notes are a little fun
The real digital retail should have richer connotation and significance
c# 获取uuid
VR panorama gold rush "careful machine" (Part 1)
Framework learning journey: init process startup process
The 100th of the commercial anti counterfeiting series - boring systems and management processes can really be thrown into the trash can - by the way, analyze a dozen useless unity game self-test proj
Use tag tag in golang structure
Session&Cookie&token
11. Zuul routing gateway
Golang jwt跨域鉴权
[OBS] dynamic bit rate: bit rate estimation
SkyWalking分布式系统应用程序性能监控工具-中
Elastic开源社区:开发者招募
E-commerce system combined with commodity spike activities, VR panorama continues to bring benefits
C. Cypher
物联网智能家居项目---智能卧室
What is the principle difference between lateinit and lazy in kotlin
ffmpeg合并视频功能
VR全景现在是不是刚需?看完你就明白了
ArrayList与LinkedList区别









