Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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 was wondering if it was possible to reset all the folders' rights. I was having trouble when trying to install LAMP on my Ubuntu 11.04 installation, and I modified many permissions like /var /etc and I want to cancel everything I did and have permissions set to how they would be after a new install.

share|improve this question
You may find these questions (& answers) useful:… &…. – boehj May 12 '11 at 10:41

If you messed up a bunch of permissions in system directories, your best bet is to reinstall. Unless you can find somewhere a comprehensive list of the correct permissions, you probably won't get it right; furthermore, some things will fail, perhaps in surprising ways.

So, you're best off reinstalling in this situation. In the future, I'm sure you'll be more careful about what you chmod.

share|improve this answer

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.