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
chown
from 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.
chown
command you'd have to run, but what could be hundreds of commands that vary on what packages you have installed (unless you create a script from a backup to return stats back to what they were) – guiverc Jan 31 '23 at 12:36clementine
(the music app I use) that isn't installed on a clean Lubuntu install, as one of my examples; ie. after re-install that non-default app should exist & on play continue my playlist (ie. the app was re-installed; the playlist wasn't touched nor was music files on local system).. – guiverc Jan 31 '23 at 22:55