右键菜单里的以管理员身份打开没反应
Tofloor
poster avatar
yanni
deepin
2017-08-19 06:50
Author
我之前把/usr整个文件夹用 sudo chown -R yanni /usr 命令把权限赋予我自己yanni了。
然后今天回老家没网线,发现无线网不能用,sudo命令也不能用了,出现sudo: /usr/bin/sudo 必须属于用户 ID 0(的用户)并且设置 setuid 位
然后在网上用下面这个教程弄好了无线和sudo
进入recovery模式--->选择root
进入后执行命令行
chown -R root  /usr
chown root:root /usr/bin/sudo
chmod 4755     /usr/bin/sudo
可能会出现Read-only file system 的错误
先执行mount -o remount rw /  命令,重新挂载,然后再执行chown和chmod
然后reboot 重启机器。

但是现在发现以管理员身份打开不管用了,点完没反应,请问各位大神该这么处理呢?我不想重新装系统呀0-0

Reply Favorite View the author
All Replies
avatar
yanni
deepin
2017-08-19 14:31
#1
我想问一下,如何将/usr整个文件夹恢复成以前默认的权限。
Reply View the author
avatar
152******09
deepin
2017-08-19 16:57
#2
我电脑上usr的权限
drwxr-xr-x  11 root   root     4096 7月  24 15:25 usr

sudo chmod -R 755 /usr
即可。
Reply View the author
avatar
yanni
deepin
2017-08-19 17:38
#3
https://bbs.deepin.org/post/144382
我电脑上usr的权限
drwxr-xr-x  11 root   root     4096 7月  24 15:25 usr

感谢感谢!!!!!!!!!!
Reply View the author
avatar
billy123456
deepin
2017-08-20 21:17
#4
https://bbs.deepin.org/post/144382
感谢感谢!!!!!!!!!!

千万不要这么干,后果严重
Reply View the author
avatar
billy123456
deepin
2017-08-20 21:17
#5
https://bbs.deepin.org/post/144382
感谢感谢!!!!!!!!!!

它将导致你的sudo废掉
Reply View the author