I accidentally ran the command chown -R MY_ACCOUNT / and now I can't start my computer anymore. It shows the Ubuntu logo, but gets stuck before showing the login prompt.
I've seen this question asked here before, and people have been recommended to reinstall Ubuntu with the option to keep all files.
However, when I try to reinstall from a USB, I am only given the option to install and delete all files, or to install a new Ubuntu 22.04 parallel to my previous Ubuntu 22.04. So I have the following questions:
Can I run a suitable
chownfrom a live version of Ubuntu so that I can log in again?If 1. is not possible, can I at least do something from the live version that allows me to reinstall Ubuntu and keep my files?
If a new install is really necessary, is it safe to restore my files from the backup on my external drive, or are the changed ownerships stored in some files there, so that restoring will get me back to where I am now?
I'm grateful for any help.