Questions tagged [shared-libraries]
54 questions
57
votes
4 answers
Find libraries a binary was linked against
I know that there is a command that lists me the libs and respective versions a software
was linked against.
Something with ld or libtool?
But I just cannot remember. Spent some time on google but didn't come up with anything useful.
Update
ldd…
er4z0r
- 801
25
votes
3 answers
Subverting the execute flag on Linux systems. Why is this possible?
Whilst reading this, I found the following exploit:
% cp /usr/bin/id ~
% chmod -x ~/id
% ls -al ~/id
-rw-r--r-- 1 edd edd 22020 2012-08-01 15:06 /home/edd/id
% ~/id
zsh: permission denied: /home/edd/id
% /lib/ld-linux.so.2 ~/id
uid=1001(edd)…
Edd Barrett
- 485
7
votes
1 answer
What is the difference between /usr/lib /usr/local/lib and /usr/lib/x86_64-linux-gnu?
In my Linux machine I have boost libraries (libboost*.so files) in all of the above directories. I am wondering what is the difference between them. Can I remove the duplicate so files?
motam79
- 500
5
votes
2 answers
How do I know which shared libraries are loaded by an already running process?
How do I know which shared libraries are loaded by an already running process?
I'm using Linux.
asker
4
votes
1 answer
Add a network folder as a readonly Windows 8 library location
I have some movies and music on a NAS drive, and want to allow my children to access them from Windows 8.
My plan was to add the relevant NAS folders as new "library locations" for their Music and Videos libraries.
However, I don't want them to…
Mark Heath
- 615
3
votes
1 answer
How do I add a network folder to a Windows 8 library?
Possible Duplicate:
Windows 7 - creating a local library with network shares/drives
A follow-up to this question: Add a network folder as a readonly Windows 8 library location
When I try and add a network share to the Windows music library (via…
Eclipse
- 398
3
votes
1 answer
ssh without remote shell
Is there any way to get sshd to run an executable without first starting a shell?
The problem is that I accidentally moved libtermcap on a server (which is running CentOS 5). I can't ssh to the machine as bash needs libtermcap. I can't run a command…
3
votes
0 answers
Is there a ProgramData equivalent for OS X/macOS Sierra?
In Windows, it's common to write shared data to %ProgramData%\path\to\stuff. From there, programs installed for any user can access it as a sort of "source of truth" or common repository. Usually writing to this directory is a low-privilege…
rianjs
- 419
2
votes
2 answers
how does a program know where it's shared libs are, without LD_LIBRARY_PATH
I have a program foobar that uses shared libraries. I setup LD_LIBRARY_PATH correctly and then when I run
>ldd foobar
I can see that it knows full paths to all the libraries it needs.
However, on some systems ("bigger" ones), I don't need…
user322908
- 819
2
votes
1 answer
Finding all files that link to a particular library on Linux
I could possibly write a script to do a combination of find, ldd, and grep, but wanted to find out if there is a better way.
For example if the library is /usr/lib/libmhash.so.2, I'd like to know all binaries on the system that link to it.
slowpoison
- 699
2
votes
1 answer
How does a unix binary decide where to get a shared library?
I use a Linux executable, the libraries are located in many place. I mean the same library with different version. The problem is the executable picks up the executable in wrong library. The OS is Ubuntu 64 bit.
The libraries are located…
Aftershock
- 735
2
votes
0 answers
Can you run a program using a custom glibc?
I installed Mathematica 9 on an old Red Hat Enterprise Linux AS release 4 system.
After the installation, I tried to start Mathematica, but following message came…
user15964
- 179
2
votes
1 answer
asterisk: error while loading shared libraries: libasteriskssl.so.1
I am using Ubuntu 14.04 and followed the instructions to install asterisk from this link
Ubuntu 14.04 Asterisk server installation
All worked well until I run asterisk and get a shared lib error.
asterisk: error while loading shared libraries:…
2
votes
0 answers
Why are shared libraries (.so files) loaded as private?
This is from an smaps file:
b750d000-b76bc000 r-xp 00000000 08:01 918842 /lib/i386-linux-gnu/libc-2.23.so
The p in r-xp indicates it is loaded as private I believe. Why is this so? Doesn't this defeat the purpose of shared libraries if a copy…
ben_joseph
- 121
- 4
2
votes
1 answer
Create shared library of VBA functions in Excel
At our company we have a lot of different Excel files to keep track of our projects. We would like to implement some VBA functions in these files, written by us, the IT department. We want it so that we can write the functions, then place them in…
Teebs
- 175