Score:0

ubuntu:ubuntu owns "/" - all server files

nr flag

So recently, I made a mistake. I did;

sudo chown -R ubuntu:ubuntu /

Now, my server is pretty non-functioning, and the fact that my server is using 100% of it's space, doesn't make the situation any better.

( I still have access to the headless terminal, but cant su )

I really need help with how I can revert this change.

So the outcome I am looking for: Reverting all permissions in root, to the default, and functioning Ubuntu.

Ubuntu 22.04

Nmath avatar
ng flag
This is a fatal mistake because it changes the ownership of every file on your system. The system relies on correct ownership and permissions to run. You'll need to reinstall the system. Don't reuse files from this installation because files will have incorrect ownership and permission values. Restore files from backups taken before you used this command.
cn flag
"So the outcome I am looking for: Reverting all permissions in root, to the default, and functioning Ubuntu." start a live session and manually alter all the files you changed to ubuntu:ubuntu. But I do agree with Nmath... a reinstall without format will take a lot less time.
hr flag
... see also [Linux Ubuntu Server - sudo chown -R user:user /](https://askubuntu.com/questions/912555/linux-ubuntu-server-sudo-chown-r-useruser)
Artur Meinild avatar
vn flag
Does this answer your question? [What if I accidentally run command "chmod -R" on system directories (/, /etc, ...)](https://askubuntu.com/questions/43621/what-if-i-accidentally-run-command-chmod-r-on-system-directories-etc)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.