Server Fault is a question and answer site for system and network administrators. 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 was wondering if there is a set of commands that you can run to reset file permissions to default. A bunch of directories/files got their permissions changed on my server due to me copying and pasting a shell script without looking closer into what it was actually doing.

share|improve this question

There's no way doing this except for resetting the packages contents rights.

You could try :

rpm --setperms {packagename}

But it wont probably affect all LSB directories.

share|improve this answer
You can find more info here… – wojciechz Aug 23 '12 at 15:44
I found this site:… that seems like it should do the trick... is this correct? – Joshua Terrill Aug 23 '12 at 15:54
I would not use it without previous verification because it's not supported by community and post is 4 years old. – wojciechz Aug 23 '12 at 16:09

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.