Mac OS X Snow Leopard: permissions changed on /var results in dns lookup issues

Posted by Ivan on Server Fault See other posts from Server Fault or by Ivan
Published on 2010-06-12T07:48:46Z Indexed on 2010/06/12 7:53 UTC
Read the original article Hit count: 343

Filed under:
|
|
|
|

I was attempting to solve an issue ("/var/log/msmtp.log: permissions denied" error when attempting to send mail using msmtp) when I did this:

> chmod -R 770 /var

After that, my machine would not resolve domain names via cURL. (ping also fails) But, oddly, I can enter domain names into Safari and visit any web pages w/o a problem...

I'm actually not sure if the chmod command is the cause of the problem, but I suspect it is.

Also, if I ls -l on /var (or /private/var) it doesn't seem that any of the subdirectories or files there actually changed permission, but there are many, so I can't say that conclusively...

Incidentally, I fixed the original error (msmtp.log permission denied) by setting TMPDIR=/tmp in my local environment (bash). Now the error goes away, but I get this error:

msmtp: cannot locate host domainname.org: nodename nor servname provided, or not known

Any ideas about how to go about getting DNS working again?

© Server Fault or respective owner

Related posts about dns

Related posts about macosx