---
title: "解决is not in the sudoers file问题"
author: "androider"
date: "2011-06-09T20:49:31Z"
tags: []
categories: ["操作系统"]
slug: "is-not-in-the-sudoers-file"
draft: false
lastmod: "2011-06-09T20:49:31Z"
id: 1074597
url: "https://androider.iteye.com/blog/1074597"
---

解决xxx is not in the sudoers file. This incident will be reported的错误：

原因：linux默认没有开启sudo权限

解决方法：
＃su - 
#chmod u+w /etc/sudoers 
#visudo 
在root ALL=(ALL) ALLZ下 添加xxx ALL=(ALL) ALL 
＃chmod u-w /etc/sudoers