在此之前,我知道有一个类似的问题,这里。
当我执行:
sudo bash 我得到以下错误:
/usr/bin/sudo must be owned by uid 0 and have the setuid bit set然而,我的问题有一个不同之处,不允许我使用以下所建议的解决办法:
1. Log out as the current user, then log back in as root.
2. Execute chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo
3. Log out as root, then log back in as the current user. 因为我不能以root身份登录。
我的问题是,如何作为root登录来完成第一步?
即1. Log out as the current user, then log back in as root.
发布于 2022-05-23 20:32:41
您可以从USB拇指驱动器启动,挂载您的根文件系统,然后安装chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo。重新启动之后,sudo应该又能工作了。
发布于 2020-09-04 23:55:33
此操作将重置默认状态的所有权限。
https://askubuntu.com/questions/1034017
复制相似问题