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 ?