?
Solved

ldd -s says 'insecure directory name'... what does this mean?

Posted on 2003-11-24
12
Medium Priority
?
1,125 Views
Last Modified: 2013-12-27
I'm attempting to run a program dependant on a bunch of library files.  All of the files are in the proper /lib directory, yet the program doesn't run.  I did an LDD command on it and it simply said the file was not found, despite the fact that other libraries in the same directory were.

Upon doing an LDD -s, however, it first displayed all of the possible search paths, and then
ignore path = /whichever_lib_dir (insecure directory name)
for each one, whereas the others at least write "trying path."

I dont understand why it would be doing this for this one specific library file only.  The permissions and whatnot for it are identical to all other files which are being properly found, and I am an admin on the machine.

How can I get this library file recognized?  Thanks in advance!
0
Comment
Question by:Skkra
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 2
12 Comments
 
LVL 24

Expert Comment

by:shivsa
ID: 9812018
could u try sowhat command. it may be help in Analyzing dependencies.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9812039
also check your LD_LIBRARY_PATH,
echo $LD_LIBRARY_PATH, does it have the name of your directory. if not try including this one too.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9812102
also read about this security document.
downloads.securityfocus.com/library/ practical_solaris_security.ps
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:Skkra
ID: 9812132
The LD_LIBRARY_PATH is correct.  I tried the other tip but that didnt work either.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9812964
what version of solaris u are running.
have u applied all the patches for this release.
there were some bug fixes related to ldd in recent patches related to insecure files/directories.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9813020
there were some changes done for secure loading libs.
and libs put in
/usr/lib/secure
/usr/lib/sparcv9/secure.

if your appliaction need LD_PRELOAD, and your libs are not there, it will give u this error.
try to place your libs to one of these directory and try again. This is the workaround for problems faced in solris 7 and solaris 8.
0
 

Author Comment

by:Skkra
ID: 9819535
Shivsa, thank you for all of your help, but I managed to figure out the solution myself eventually.

The file I was attempting to execute, while I had the permissions, we owned by root, while I was on an alternate admin account.  Once I used chown to set the file to myself, the problem went away.

Is there some way to have this thread closed?
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9820805
Good to know you got the issue resolved.
You can close the question by following this guidelines.

http://www.experts-exchange.com/help.jsp#hs5
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9821080
downloads.securityfocus.com/library/ practical_solaris_security.ps

tells about these kind of securties problems. so u can read it more to learn more about securities issues related to library issue.
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9843619
You can close the question by following this guidelines.

http://www.experts-exchange.com/help.jsp#hs5
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
ID: 10892818
PAQed, with points refunded (250)

ee_ai_construct
Community Support Moderator
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month8 days, 8 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question