<p>That's terrible advice I'm afraid - we should never advise people to put unpackaged code in <code>/usr</code> (excepting <code>/usr/local</code> of course).</p>
<p>As I explained on IRC your problem was simply that you didn't have the permissions right - in the home directory case the postgres user probably didn't have search permissions (the <code>x</code> bit) into your home directory (hence "could not access").</p>
<p>The <code>/var/lib</code> case is less clear, but may well have been selinux or apparmor (not sure what distro it was).</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/openstreetmap/openstreetmap-website/pull/839#issuecomment-63437809">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABWnLfDx9n3XIGIMVh99Aqm82fgtEfCqks5nOv1vgaJpZM4C88Bv.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
<link itemprop="url" href="https://github.com/openstreetmap/openstreetmap-website/pull/839#issuecomment-63437809"></link>
<meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>