title: Wkhtmltopdf user permission
body: <p>I can't seem to get <code>wkhtmltopdf</code> to work on a user account.</p>
  
  <p>As root user:</p>
  
  <pre><code>wkhtmltopdf -V
  wkhtmltopdf http://google.com google.pdf
  </code></pre>
  
  <p>Both of the above work. But as a normal user I get an error:</p>
  
  <pre><code>wkhtmltopdf -V
  wkhtmltopdf: error while loading shared libraries: libQtWebKit.so.4: cannot open shared     object file: No such file or directory
  </code></pre>
  
  <p>Obviously, <code>wkhtmltopdf</code> is working and installed correctly, as it works for the root user, but not for all of the users.</p>
  
  <p>I have tried setting permissions:</p>
  
  <pre><code>[root@server ~]# chmod 755 /root/wkqt/
  [root@server ~]# chmod 755 /root/wkqt/lib/
  [root@server ~]# chmod 755 /root/wkhtmltopdf-qt/
  [root@server ~]# chmod 755 /root/wkhtmltopdf-qt/lib/
  [root@server ~]# chmod 644 /root/wkqt/lib/*so*
  [root@server ~]# chmod 644 /root/wkhtmltopdf-qt/lib/*so*
  </code></pre>
  
  <p>I have also tried adding to <code>visudo</code>:</p>
  
  <pre><code>motorconne localhost=/bin/wkhtmltopdf
  motorconne localhost=/root/wkhtmltopdf-qt/lib/libQtWebKit.so.4
  </code></pre>
  
  <p>but still no luck. Any ideas?</p>