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

This question already has an answer here:

I gave a 0777 permissions to /var (I didn't know back then that it's a really bad thing to do) I did this while in /var :

chmod -R 0777 *

after I did this postgresql fails to restart everytime. my question is, how can I return the whole /var permission tree to its default status ?

share|improve this question

marked as duplicate by Iain, Sven, MDMarra, Ward, MadHatter Jun 18 '13 at 16:20

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Uh...restore from backup? – Nathan C Jun 18 '13 at 13:44
Restore from your latest backup. If you don't want to overwrite data, check your permissions on your backup media and write a shell script to set the permissions on your disk according to what you have on your backups. – Jenny D Jun 18 '13 at 13:44

You should solve this issue by restoring your system from a backup that was taken before you did this.

share|improve this answer

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