添加用户到sudo的方法 方法一: chmod +w /etc/sudoers vim /etc/sudoers username ALL=(ALL) ALL chmod -w /etc/sudoers 方法二: usermod -a -G sudo username