centos中普通用户使用sudo报错:centos is not in the sudoers file. This incident will be reported.
centos中普通用户使用sudo报错:centos is not in the sudoers file. This incident will be reported.
su -
chmod u+w /etc/sudoers
vim /etc/sudoers
在 root ALL=(ALL)ALL 这一行下面添加:用户名 ALL=(ALL)ALL