本想修改当前目录下的文件所有者为user,结果不太熟悉linux命令的我悲剧了。。
sudo chown user:user -R /**
请问现在有什么办法改回去?
sudo chown root:root -R /**
提示:sudo: /usr/bin/sudo 必须属于用户 ID 0(的用户)并且设置 setuid 位
听说有人这么做过sudo rm -R / 没想到我也做了差不多的事情。。
sudo rm -R /
还有救吗?
学习是最好的投资!
It seems there is no way to recover...
For simple processing, set root:root for the / folder, and user:user for the personal directory.
Log in with your account directlysu或者用root and change the owner back
su
root
Reinstall the system.
It’s hopeless, reinstall it
For simple processing, set root:root for the / folder, and user:user for the personal directory.
Log in with your account directly
su
或者用root
and change the owner backReinstall the system.
It’s hopeless, reinstall it