-4

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 ?

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.

  • 1
    Uh...restore from backup? – Nathan C Jun 18 '13 at 13:44
  • 2
    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
2

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

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