当前用户运行sudo
,报错如下:
$ sudo
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
#进入root
$ su
#chown修改sudo权限
$ chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
#参考
/usr/bin/sudo must be owned by uid 0 and have the setuid bit set
网友评论