#查找sudoers
whereis sudoers
#查看权限
ls -l /etc/sudoers
#修改权限,使其可以修改
chmod -v u+w /etc/sudoers
vim /etc/sudoers
新增用户test
## Next comes the main part: which users can run what software on
## which machines (the sudoers file can be shared between multiple
## systems).
## Syntax:
##
## user MACHINE=COMMANDS
##
## The COMMANDS section may have other options added to it.
##
## Allow root to run any commands anywhere
root ALL=(ALL) ALL
test ALL=(ALL) ALL
## 不需要输入密码
## test ALL=(ALL) NOPASSWD: ALL