title: Unable to load libsctp.so for non root user
body: <p>I have a Linux application that uses the libsctp.so library. When I run it as root, it runs fine. </p>
  
  <p>But when I run it as an ordinary user, it gives the following error:</p>
  
  <blockquote>
    <p>error while loading shared libraries: libsctp.so.1: cannot open shared object file: No such file or directory</p>
  </blockquote>
  
  <p>But, when I do ldd as ordinary user, it is able to see the library:</p>
  
  <blockquote>
    <p>[sanjeev@devtest6 src]$ ldd myapp</p>
  
  <pre><code>  ...
     ...
    libsctp.so.1 =&gt; /usr/local/lib/libsctp.so.1 (0x00d17000)
  </code></pre>
    
    <p>[sanjeev@devtest6 src]$ ls -lL /usr/local/lib/libsctp.so.1 </p>
    
    <p>-rwxrwxrwx 1 root root 27430 2009-06-29 11:26 /usr/local/lib/libsctp.so.1</p>
    
    <p>[sanjeev@devtest6 src]$ </p>
  </blockquote>
  
  <p>What could be wrong? How is the ldd is able to find libsctp.so, but when actually running the app, it is not able to find the same library?</p>
  
  <p>EDIT: Just observed that this problem appears only if setuid bit is set for myapp. </p>