User is not in the sudoers file. This incident will be reported

On using the sudo command if we see the error 

 

This
means that the user as whom we have logged in and are trying to run the command
"sudo" does not have the permission to do
so. 
Only the users listed
in /etc/sudoers have the permission to use the
command "sudo". 
To give the sudo
permission to a user we need to add the user to the
file /etc/sudoers file. 
Open
the file /etc/sudoers as
root. 

 

Add
the
line 

 

under
the User privilege specification section. 
Save the file
and exit, now the sudo command should work for
the user which was added in the file.

User is not in the sudoers file. This incident will be
reported

时间: 2024-08-01 14:22:21

User is not in the sudoers file. This incident will be reported的相关文章

centos添加和删除用户及 xxx is not in the sudoers file.This incident will be reported.的解决方法

1.添加用户,首先用adduser命令添加一个普通用户,命令如下: #adduser tommy //添加一个名为tommy的用户 #passwd tommy   //修改密码 Changing password for user tommy. New UNIX password:     //在这里输入新密码 Retype new UNIX password:  //再次输入新密码 passwd: all authentication tokens updated successfully.

is not in the sudoers file.This incident will be reported

解决方法如下: 1>.进入超级用户模式.也就是输入"su -",系统会让你输入超级用户密码,输入密码后就进入了超级用户模式. 2>.添加文件的写权限.也就是输入命令"chmod u+w /etc/sudoers". 3>.编辑/etc/sudoers文件.也就是输入命令"vim /etc/sudoers",输入"i"进入编辑模式,找到这一行:"root ALL=(ALL) ALL"在起下面

sunzl is not in the sudoers file.This incident will be reported

Description: [[email protected] nuc900bsp$] ./install.sh sorry!you are not the root !! [[email protected] nuc900bsp$] sudo ./install.sh password: sunzl is not in the sudoers file.This incident will be reported fixed: [[email protected] nuc900bsp$] su

xxx is not in the sudoers file. This incident will be reported

问题描述: 新建用户执行命令sudo chmod 700 ,提示输入root命令. 输入三次错误. 提示 yourid is not in the sudoers file. This incident will be reported 问题解决 more /etc/sudoers 增加用户 root    ALL=(ALL)     ALL liuyuxing  ALL=(ALL)    ALL 这样你的用户就可以使用所有的命令了,但是每次使用之前要输入自己的密码. **** 区别 sudo

Linux ->> <user_name> not in the sudoers file. This incident will be reported.

昨天在用sudo命令执行mkdir命令的时候发生了错误.错误提示如下: [email protected]:/home$ sudo mkdir /home/hadoop [sudo] password for hadoop: hadoop is not in the sudoers file. This incident will be reported. 原因是当前用户没有借用root权限去执行后面命令的权限,默认是只有admin组的成员才有这个权限的.那是在哪设定这个东西的呢? 答案就是vi

mqm is not in the sudoers file. This incident will be reported.

Linux下普通用户用sudo执行命令时报"xxx is not in the sudoers file.This incident will be reported"错误,解决方法就是在/etc/sudoers文件里给该用户添加权限.如下: 1.切换到root用户下 2./etc/sudoers文件默认是只读的,对root来说也是,因此需先添加sudoers文件的写权限,命令是: chmod u+w /etc/sudoers 3.编辑sudoers文件 vi /etc/sudoers

用sudo时提示"xxx is not in the sudoers file. This incident will be reported.

现象: 非Root用户在使用sudo命令时,提示:"xxx is not in the sudoers file. This incident will be reported.(xxx为用户名) 解决办法: 使用 su – root 切换到root用户,编辑sudoers文件 vim /etc/sudoers找到"root ALL=(ALL)"在此行下面添加一行 "xxx ALL=(ALL) ALL" //xxx 为用户名 保存即可.

解决:xxx is not in the sudoers file.This incident will be reported.的解决方法

Linux中普通用户用sudo执行命令时报"xxx is not in the sudoers file.This incident will be reported"错误,解决方法就是在/etc/sudoers文件里给该用户添加权限.如下: 1.切换到root用户下  方法为直接在命令行输入:su,然后输入密码(即你的登录密码,且密码默认不可见). 2./etc/sudoers文件默认是只读的,对root来说也是,因此需先添加sudoers文件的写权限,命令是: 即执行操作:chmo

企业运维案例:xxx is not in the sudoers file.This incident will be reported” 错误解决方法

CentOS6系统下,普通用户使用sudo执行命令时报错: xxx is not in the sudoers file.This incident will be reported" 解决方法就是在/etc/sudoers文件里给该用户添加权限.如下: 1.切换到root用户下 2./etc/sudoers文件默认是只读的,对root来说也是,因此需先添加sudoers文件的写权限,命令是:chmod u+w /etc/sudoers 3.编辑sudoers文件vim /etc/sudoers