[Terminal] su: cannot set groups: 不允许的操作
Tofloor
poster avatar
wan2021
deepin
2021-09-03 05:51
Author

因为文件有锁,创建不了文件,解压不了文件,所以执行了 这么一条命令  

suod chown 用户名  删除锁的文件 / -R 

 

然后root 进去不了了

su: cannot set groups: 不允许的操作

sudo也无法操作

sudo: /usr/bin/sudo 必须属于用户 ID 0(的用户)并且设置 setuid 位

请问怎么修复?

 

 

Reply Favorite View the author
All Replies
wan2021
deepin
2021-09-03 05:53
#1
chown -R root:root /bin/su     

chmod u+s /bin/su   


无权限,无效果,失败
Reply View the author
Barry-okx
Junior Packager
2021-09-03 06:56
#2

我觉得你可能需要进另外一个系统  比如live cd  修一下用户权限。

Reply View the author
Comments
wecli
2021-09-03 16:27
正解
wecli
deepin
2021-09-03 16:28
#3
It has been deleted!
北冥夜未央
deepin
Ecological co-builder
2021-09-04 04:30
#4

所有作用到根目录“/”的操作都要三思呀,一不留神就是数据全丢的下场。

Reply View the author