Linux怎么让普通用户可以执行sudo命令,xxx is not in the sudoers file.This incident will be reported.的解决方法

发表于 LINUX 分类,标签: linuxsudosudoers
1.切换到root用户下,修改sudoers文件2.添加sudo文件的写权限,chmodu+w/etc/sudoers3.编辑sudoers文件vim/etc/sudoers找到这行rootALL=(ALL)ALL,在他下面添加your_usernameALL=(ALL)ALL(这里的your_username是你的用户名)注意:这里说下你可以在sudoers添加下面四行中任意一条youuser           ALL=(ALL)               ALL%youuser  &n...