Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 4 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
add comment

Your Answer

 
discard

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.