当前位置:网站首页>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了
边栏推荐
- c# 获取uuid
- 每日一题:奇偶树
- 细说Hash(哈希)
- VR全景制作在家装行业是谈单利器?这是为什么呢?
- C. Cypher
- 在Golang结构体中使用tag标签
- Is VR panoramic production a single weapon in the home decoration industry? Why is this?
- 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
- 阿里云服务器域名加端口网页不能访问问题记录
- Redis (IX) - redis distributed lock
猜你喜欢

Alibaba cloud server domain name and port web page cannot access the problem record

11.zuul路由网关

Stm32cubemx learning notes (41) -- eth interface +lwip protocol stack use (DHCP)

E-commerce system combined with commodity spike activities, VR panorama continues to bring benefits

288页18万字智能化校园总体设计 目录

452页13万字现代智慧乡镇雪亮工程整体解决方案2022版

Chapter 4 decision tree and random forest

JVM原理简介

H. 265 web player easyplayer's method of opening video to the public

电商系统结合商品秒杀活动,VR全景不断带来收益
随机推荐
A. Round Down the Price
Article main content extraction software [based on NLP technology]
Golang jwt跨域鉴权
Lixia action | Yuanqi Digitalization: existing mode or open source innovation?
线上一个隐匿 Bug 的复盘
阿里云服务器域名加端口网页不能访问问题记录
NFT digital collection system development: old brand literary magazines play with trendy Digital Collections
[semidrive source code analysis] [drive bringup] 41 - LCM drive backlight backlight control principle analysis
Interview question 16.05 factorial mantissa
js实现页面跳转与参数获取加载
Apachecon Asia preheating live broadcast incubator theme full review
tcp协议知识详解
ArrayList与LinkedList区别
Is VR panorama just needed now? After reading it, you will understand
Collating strings
Development of NFT digital collection system: Xiaoyi digital intelligence helps brands launch NFT with one click on the chain
科目三: 济南章丘6号线
Parallels Desktop启动虚拟机“操作失败”问题解决
Leetcode daily question: relative sorting of arrays
Chapter 4 decision tree and random forest