sudo:有效uid不为0,sudo是否已安装setuid root? [英] sudo: effective uid is not 0, is sudo installed setuid root?
问题描述
我正在尝试从LXC rootfs创建deb软件包,并在创建后 我想在任何计算机上安装该软件包.到目前为止,我实现了 包装并安装Deb程序包,但是在安装LXC之后 包,我不能成为该lxc的超级用户.使用时出现此错误 "sudo" 命令.
I am trying to create deb package from LXC rootfs, and after creating it I want to install that package any computer. Up to this point I achieved packaging and installing deb package, however after installation of LXC package, I cannot be superuser in that lxc. I get this error when I use "sudo" command.
sudo:有效uid不为0,sudo是否安装了setuid root?
sudo: effective uid is not 0, is sudo installed setuid root?
先谢谢了.
推荐答案
在奇怪地决定通过以下操作来破坏我自己的系统后,我在Mac OS上也遇到了同样的问题:sudo chmod -R /usr/bin
.如果是其他情况,只需打开磁盘工具,选择您的操作系统磁盘(在我的情况下为"Macintosh HD"),转到急救标签,然后点击修复磁盘权限,请稍等片刻,然后问题就会解决.
I just had this same exact problem on Mac OS after strangely deciding to screw my own system by doing: sudo chmod -R /usr/bin
. If that's someone else's case just open Disk Utility, select your OS disk ("Macintosh HD" in my case), go to First Aid tab then hit Repair Disk Permissions, wait a few and things should get fixed.
这篇关于sudo:有效uid不为0,sudo是否已安装setuid root?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!