获取消息"sudo:必须为setuid root",但sudo已由root拥有 [英] Getting message "sudo: must be setuid root", but sudo IS already owned by root
本文介绍了获取消息"sudo:必须为setuid root",但sudo已由root拥有的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试运行sudo,但失败了:
I'm trying to run sudo, and it's failing:
gregd@david $ sudo ls
sudo: must be setuid root
gregd@david $ which sudo
/usr/bin/sudo
gregd@david $ ll /usr/bin/sudo
-rwxr-xr-x 1 root root 165K 2012-05-16 00:25 /usr/bin/sudo*
关于如何解决此问题的任何建议?
Any suggestions on how to fix this?
推荐答案
您必须能够以root用户身份登录,但如果可以,则可以运行此程序
You have to be able to log in as root, but if you can you can run this
chmod u+s /usr/bin/sudo
并解决问题
这篇关于获取消息"sudo:必须为setuid root",但sudo已由root拥有的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文