将一般的用户加入sudo组is not in the sudoers file. This incident will be reported 解决方法 在一般用户下执行sudo命令提示xxx is not in the sudoers file. This incident will be reported.解决方法: $whereis sudoers -------找出文件所在的位置,默认都是/etc/sudoers 有时候我们只需要执行一条root权限的命令也要su到roo
1.添加普通用户[root@server ~]# useradd book //添加一个名为book的用户 [root@server ~]# passwd book //修改密码 Changing password for user book. New UNIX password: //在这里输入新密码 Retype new UNIX password: //再次输入新密码 passwd: all authentication tokens updated successfully 2.然后修改