/usr/bin/sudo 必须由 uid 0 拥有并且设置了 setuid 位版本 .ubantu14.04 LTS [英] /usr/bin/sudo must be owned by uid 0 and have the setuid bit set version .ubantu14.04 LTS

查看:26
本文介绍了/usr/bin/sudo 必须由 uid 0 拥有并且设置了 setuid 位版本 .ubantu14.04 LTS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我为 npm 设置 EACCESS 并且我在终端中运行 chown 命令以获取更改所有者权限时,但现在我坚持了这一点sudo :/usr/bin/sudo 必须由 uid 0 拥有并设置 setuid 位"我的版本是:ubuntu14.04 LTS 请帮助我 Guyz :)

when I set the EACCESS for npm and I was ran the chown command in my terminal for change owner permission but now i stuck in this sudo :" /usr/bin/sudo must be owned by uid 0 and have the setuid bit set" my version is : ubuntu14.04 LTS please help me guyz :)

推荐答案

首先重启你的电脑,然后在 Ubuntu 启动时按下 ESC 键.

First restart your pc, and press the ESC key while Ubuntu is booting.

这将调出启动菜单.

选择高级选项.

在(恢复模式)中选择您的操作系统版本,然后按 Enter 键.

Select your OS version in (recovery mode), and press Enter Key.

它会带你进入另一个屏幕.现在选择Drop to root shell prompt"并按 Enter.

It will bring you up another screen. Now select "Drop to root shell prompt" and press Enter.

它将在屏幕底部加载一个命令行.

It will load a command line at the bottom of the screen.

现在运行以下每个命令.

Now run each of the following commands.

mount -o remount,rw /
mount --all
chown root:root /usr/bin/sudo
chmod 4755 /usr/bin/sudo
shutdown -r now

这篇关于/usr/bin/sudo 必须由 uid 0 拥有并且设置了 setuid 位版本 .ubantu14.04 LTS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆