Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I stupidly ran sudo chown -R carlos:carlos / and carlos is my user. This changed all files to be Carlos and I could not boot up again (because the root files were now owned by #1000) and I cant get sudo acess in live cd (because the owner of /usr was changed to my user). Can anyone help me? FYI I have mounted my hard drive.

share|improve this question
up vote 5 down vote accepted

You could spend a bunch of time trying to repair this, your best bet is to just reinstall over your existing installation and doublechecking that you don't format the partition.

You'll lose the packages you have installed and have to reinstall them, but it's much less work than reconstructing the permissions on your system.

share|improve this answer
Will this erase ~? If it does, it's probably a good idea to backup ~ first. After the reinstall, you can replace the new ~ with the old ~ afterwards and keep your old settings. This will save you lots of time. – Exeleration-G Jun 25 '12 at 21:18
No, by default a reinstall will preserve ~, but you're right, keeping backups is always a good idea. – Jorge Castro Jun 25 '12 at 21:21
Actually, depends if the /home drive is on a separate mount point in my experience, because from what I've done when trying to reinstall, Ubuntu NEEDS to erase the mount point of / to reinstall it's OS... – Dominic Hayes Jul 2 at 18:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.