sudo 命令权限设为 xxx:root 导致无法使用 root 权限,如何解决
Tofloor
poster avatar
lisgroup
deepin
2018-01-25 03:17
Author
本帖最后由 lisgroup 于 2018-1-24 19:22 编辑
  1. lisgroup@lisgroup:~$ sudo chown -R lisgroup /usr/bin/

  2. lisgroup@lisgroup:~$ ls -al /usr/bin/sudo
  3. -rwxr-xr-x 1 lisgroup root 145040 12月  6 08:55 /usr/bin/sudo

  4. lisgroup@lisgroup:~$ sudo chown -R lisgroup /usr/bin/
  5. sudo: /usr/bin/sudo 必须属于用户 ID 0(的用户)并且设置 setuid 位

Copy the Code


现在所有 root 权限操作的都无法使用了,怎么办?

为了使用 node 方便安装软件,讲 /usr/bin/ 目录权限设置了的。。。。
Reply Favorite View the author
All Replies
avatar
lisgroup
deepin
2018-01-25 03:23
#1
占楼,记录 no zuo no die  !
Reply View the author
avatar
iminto
deepin
2018-01-25 03:36
#2
死循环了。。。开机按x进入修复模式应该可以
Reply View the author
avatar
duanyao
deepin
2018-01-25 08:14
#3
用启动盘进去修,或者进单用户模式。
Reply View the author
avatar
lisgroup
deepin
2018-01-25 19:51
#4
https://bbs.deepin.org/post/152327
用启动盘进去修,或者进单用户模式。

进入修复模式,直接高坏掉了,现在重新安装系统了!~
Reply View the author
avatar
woodelf
deepin
2018-01-25 20:44
#5
城会玩……
Reply View the author
avatar
呆了个呆
deepin
2018-01-26 03:20
#6
/usr/bin/ 的权限也敢去修改,胆真是肥。用了 Linux 这么多年,还从来没听说过有什么情况要去修改系统目录权限的
Reply View the author
avatar
daloyanf
deepin
2018-01-26 21:08
#7
root用户 去修改咯
Reply View the author
avatar
181******81
deepin
2018-01-26 22:57
#8
/bin
/usr/bin

等目录的权限居然不管三七二十一通通 -R 改权限,
胆子真肥。活该你折腾。嘿嘿。

不过应该可以用 系统安装?盘,进入命令模式修复。不担心。
Reply View the author