Shared library permissions

Ken Moffat ken at
Mon Aug 22 13:06:48 PDT 2005

On Mon, 22 Aug 2005, Matthew Burgess wrote:

> Hi folks.
> Does anyone know why shared libraries need the execute bit set on them?  My 
> most recent build (gcc4-based) has most[1] *.so files installed with 755 
> permissions.  As it's so consistent, I'm assuming there is a reason for them 
> to be executable.  Thanks to Tarek Ghaleb and Andrew Benton for highlighting 
> the issue [2].

> [1] Exceptions being: /lib/ (555), /usr/lib/ (644), 
> /usr/lib/ (644), /usr/lib/ (644), and 
> Perl's modules (555)

  /usr/lib/lib{c,pthread}.so aren't libraries, they are ld scripts.

  das eine Mal als Tragödie, das andere Mal als Farce

More information about the lfs-dev mailing list