Ref:http://blog.sina.com.cn/s/blog_4aa35ca101012qb6.html 装完linux系统,发现普通用户无法使用sudo 命令, 提示:User1(普通用户)is not in the sudoers file, This incident will be reported. 大概意思是说User1这个用户不在sudoers这个文件里,这个事件将要被报告的. 我们可以这样做 [User1@localhost~]$su -    (切换到root) 输入超…
今天在新装的linux虚拟机中使用sudo命令时,报错如下 We trust you have received the usual lecture from the local System Administrator. It usually boils down to these three things: #) Respect the privacy of others. #) Think before you type. #) With great power comes great r…
为用户添加sudo命令功能: 打开etc下的sudoers文件 vi /etc/sudoers 在 root   ALL=(ALL)  ALL 下面添加如下一行,然后保存关闭 hadoop  ALL=(ALL)  ALL (注1:网上有文档上是说先切换到root用户,然后修改sudoers的权限,再打开添加 hadoop  ALL=(ALL)  ALL ,然后再将权限改回为只读,这样就要特别注意一 定要将权限改回为只读,不然“sudo”命令就无法使用了,很悲剧的说 注2:添加 hadoop  A…
昨天一不小心把自己的系统搞崩了,也没有快照,没法进行还原操作,所以只能重装系统解决了,装完系统以后一切正常,当我新增了一个用户,使用sudo命令切换到root用户时,发现怎么都切换不过去,经过百度发现需要将新增的用户添加到sudoer文件中:具体操作如下. 一:编辑sudoer文件 sudoer文件默认是不可以进行修改编辑操作的,所有首先使用chmod命令将sudoer文件设置为可编辑状态 命令:chmod u+w /etc/sudoers 使用vim命令编辑sudoers文件,按E进入编辑模式…
linux下添加用户到sudo组 创建用户  useradd hanli 为新用户设置密码  passwd hanli 创建用户组  groupadd  op 将用户添加到用户组  usermod -G op hanli 查看用户属于哪个组  groups hanli 查看用户组成员    groupmems -g wheel -l  (wheel是组名) 查看所有用户组   cat /etc/group   cat /etc/gshadow 查看所有用户       cat /etc/pass…
新建的用无法使用sudo命令,出现这样的提示: xiaojing is not in the sudoers file. This incident will be reported 原来是新建的用户没在sudoers的管理文件中,那往里添加不就完了嘛,以下是方法: 1.切换到root用户. su root #接着系统会提示你输入root用户的密码 2.添加sudoers文件写的权限. chmod u+w /etc/sudoers 3.编辑sudoers文件并添加相应的内容. vim /etc/…
在使用普通用户登录的时候,会经常使用sudo指令执行一些操作,有时候感觉输入密码比较繁琐,特别是需要设置一些开机启动的时候操作,而这些操作往往就需要sudo指令,如果没有免密的话,在使用普通用户登录的时候就无法执行,这个时候给普通用户添加免密码sudo功能就非常的必要了 注意:sudo面密码只是在执行sudo指令的时候不需要输入密码,并不是普通用户拥有超级用户的权限,需要root才有的权限不加sudo 一样执行不了 ,所以这一点也保证了使用免密码的安全性 ,只是在使用sudo的时候不需要输入密码…
最近在学习linux,在某个用户(xxx)下使用sudo的时候,提示以下错误:xxx is not in the sudoers file. This incident will be reported. 百度了下,究其原因是用户没有加入到sudo的配置文件里. 解决方法如下:  1.切换到root用户,运行visudo命令  2.找到root ALL=(ALL) ALL,在下面添加一行 xxx ALL=(ALL) ALL 其中xxx是要加入的用户名称…
来源: http://jingyan.baidu.com/article/2a1383284bb3e8074a134f2d.html 当我们使用sudo命令切换用户的时候可能会遇到提示以下错误:xxx is not in the sudoers file. This incident will be reported,xxx是你当前的用户名,究其原因是用户没有加入到sudo的配置文件里 工具/原料   vi/vim 方法/步骤   1 切换到root用户,运行visudo命令 2 在打开的配置文…
方法来源: http://www.linuxhospital.com/read/unable-to-resolve-function-glxqueryextension-in-hyperview.html https://dirkgorissen.com/2011/07/14/ansys-13-on-ubuntu-10-10-64bit/ 解决方法: 我们需要将/opt/ansys_inc/v171/Framework/bin /Linux64/Mesa添加到Linux的环境变量当中.对于不同的…