sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set 的解决办法

Posted justlove

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set 的解决办法相关的知识,希望对你有一定的参考价值。

  Linux新建用户 ,sudo报错:

sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set

  解决办法:重置一下sudo的属性

chown root:root /usr/bin/sudo

chmod 4755 /usr/bin/sudo

  然后就ok了。

以上是关于sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set 的解决办法的主要内容,如果未能解决你的问题,请参考以下文章