title: Can't change to home directory
body: <p>When logging into my virtual server as a non-root user, I suddenly get the following error:</p>
  
  <blockquote>
    <p>"Could not chdir to home directory
    /var/www/vhosts/prosodylab.org/web_users/username: Permission denied
    -bash: /var/www/vhosts/prosodylab.org/web_users/username/.bash_profile:
    Permission denied"</p>
  </blockquote>
  
  <p>I checked the permissions in the user directory (they're set to 700, and I also changed to 777 to check, with now effect).</p>
  
  <p>This affects all users (including if I create a new user), but as root user I can still change into the relevant directories without problem. </p>
  
  <p><code>echo $HOME</code> returns the right directory.</p>
  
  <p>Here is the directory entry of the home directory of the user (when set to 700):</p>
  
  <pre><code>drwx------ 20 username    psaserv 4096 Jun  5 16:56 username
  </code></pre>
  
  <p><code>grep username /etc/passwd</code> returns the following output, so the directory seems to be set correctly:</p>
  
  <pre><code>username:x: [...] ::/var/www/vhosts/prosodylab.org/web_users/username:/bin/bash
  </code></pre>
  
  <p>The server is a 1&amp;1 dedicated virtual linux server, and it's worked fine for many years. I might have inadvertently changed something, but if so the I don't know what. </p>
  
  <p>Does anyone know what might be the problem?</p>