sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set的解决办法
作者:互联网
不知道为什么ubuntu中无法直接su+命令了。。。报错:sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set。只能su切换到root后再执行命令。
解决办法:
1、切换到root
2、chown root:root /usr/bin/sudo
3、chmod 4755 /usr/bin/sudo
根据以上步骤可以充值sudo的属性。
标签:bin,setuid,set,sudo,usr,root 来源: https://www.cnblogs.com/jiangyu0331/p/14341232.html