不知道為什么ubuntu中無法直接sudo+命令了。。。報錯: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的屬性。
如果不知道root密碼,參考:https://zhuanlan.zhihu.com/p/75264313