内容来源自网络linux
ssh root@server_ip_address网络
adduser usernamessh
passwd username
输入两次密码server
usermod -aG wheel usernameip
%wheel ALL=(ALL) ALL登录
userdel username权限
chmod u+w /etc/sudoers密码
root ALL=(ALL) ALL
在该行下面添加:
username ALL=(ALL) ALL文件
chmod u-w /etc/sudoerssudo
方案一和方案二不可以混合使用,混合使用反而达不到效果