报错: sudo: effective uid is not 0, is sudo installed setuid root?

切root用户报错

报错:   sudo: effective uid is not 0, is sudo installed setuid root?
解决  :  给/usr/bin/sudo  文件添加一个 s  权限即可。

chmod +s /usr/bin/sudo 

再切就可以了。

posted @ 2023-09-26 16:42  捏你小脸  阅读(617)  评论(0)    收藏  举报