原因:linux默认没有开启sudo权限
解决方法:
#su -
#chmod u+w /etc/sudoers
#visudo
在root ALL=(ALL) ALLZ下 添加xxx ALL=(ALL) ALL
#chmod u-w /etc/sudoers
解决方法:
#su -
#chmod u+w /etc/sudoers
#visudo
在root ALL=(ALL) ALLZ下 添加xxx ALL=(ALL) ALL
#chmod u-w /etc/sudoers