Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
sudo: /usr/bin/sudo 必须属于用户 ID 0(的用户)并且设置 setuid 位
Experiences and Insight
1326
views ·
2
replies ·
To
floor
Go
♬漏船载酒℡
deepin
2017-11-28 16:57
Author
sudo: /usr/bin/sudo 必须属于用户 ID 0(的用户)并且设置 setuid 位
这是更新之后出现的,有没有简单点的办法解决。
Reply
Like 0
Favorite
View the author
All Replies
130******25
deepin
2017-11-28 17:54
#1
ls -al /usr/bin/sudo
Reply
Like 0
View the author
134******40
deepin
2017-11-28 18:01
#2
本帖最后由 jdocker 于 2017-11-28 10:28 编辑
你的当前用户已经不属于sudo用户组了(误操作导致的删除了当前用户的sudo用户组),你需要进入修复模式root编辑/etc/group,在sudo那一行后面加上你的用户名。当然了,你也可以使用
gpasswd -a 你的用户名 sudo
Copy the Code
来操作。这个命令必须在root权限下操作,你当前用户已经失去sudo用户组,所以无法使用root权限,你需要进入修复模式root权限下或者进入live系统进行修改。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Вы настраиваете внешний вид Deepin?
Как установить xDroid (麟卓卓懿) на Deepin 25
Popular Events
More
这是更新之后出现的,有没有简单点的办法解决。