0

I was working on some folder. I wanted to give root access to that folder. Accidently i used this command (sudo chown -R root:root /) and now i am unable to boot my Ubuntu anymore. It shows the ubuntu boot screen but i dont see the user anymore.

I was using ubuntu 20.04 LTS Desktop

Any help?

Artur Meinild
  • 31,035

1 Answers1

5

That command is expected to destroy your Ubuntu system.

Use a LiveUSB's "Try Ubuntu" environment to recover your data on to some other media (and to repair the ownership of that data).

Then reinstall Ubuntu.

It is theoretically possible to repair by tediously restoring the correct ownership of each file on your system, but nobody has ever done so and returned to tell the tale.

user535733
  • 68,493