LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 06-19-2005, 06:36 AM   #1
cchristian
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Rep: Reputation: 0
cannot open shared object file: Permission denied


My syslog and httpd daemon on FC3 do not seem to e working

The both give me the same problem

Error while loading shared libraries: Ğlibrary nameğ cannot open shared object file: Permission denied

the libraries that are giving me problems are

httpd: libprec.so.0
syslog: libc.so.6

they can both be found in /lib or /usr/lib. I did an ldd and alltheir dependencies can be found in /lib or /usr/lib. All the libraries and thei dependancies have either 777 or 755 permisions. I noticed I have libc.so.6 a few times in the system and one of the ldd specificall referenced /lib/tls/lib.so.6 so I added that to my /etc/ld.so.conf file (I also added /lib and /usr/lib out of paranoia). No avail.

All the symlinks seem to be valid though when I do file searches for them using the gnome search built into the taskbar all symlinks are labeled symbolic link (broken). I don't see whats broken about them (and it seems all symlinks are labeled broken so I'm ignoring this detail)

I have nod idea where to look next. Does anybody have any ideas?

Help would be appreciated.

Thx,
-Christian
 
Old 06-20-2005, 04:09 AM   #2
cchristian
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
I did I a tiny bit more investigating.
I have one more daemon which won't start because of this particular problem (mysqld). Ldd on the culprit dll for all of these always brings up only /lib/tls/libc.so.6.

I also have this file elsewhere in my library search path (/lib for for example). I renamed the copy in /lib/tls to see what would happen and I got what looked like a linking error to me instead. It seems it can open the other copies of the libraries but it can't find what it is looking for.

Very frustrating
 
Old 07-28-2005, 11:35 PM   #3
JWilliamCupp
Member
 
Registered: Jul 2005
Location: Indiana, U.S.A.
Distribution: Fedora
Posts: 32

Rep: Reputation: 15
Can't Open Shared Libraries

I, too, have multiple problems stemming from an error message "Can't open shared object files: Permission denied." File libc.so.6 seems a common culprit, but there are others.

I've checked the file permissions and all look good (777 or 755).

With Fedora Core 3 this was a nuisance; certain features didn't work well such as ntpd time synching daemon. Now I'm trying to upgrade to Fedora Core 4 and this is a major problem. For instance, now I can't even open my network connection eth0 due to this problem.

At present I'm unable to regress to FC 3 so trying to push on to complete FC 4 installation. Anyone have any help to offer?

- Bill
 
Old 07-29-2005, 02:04 PM   #4
cchristian
LQ Newbie
 
Registered: Apr 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Work around

I found a workaround for this problem which I thought I posted. Since it appears I in fact didn't post it I'll go ahead and do it now.

This appears to be caused by the wierd permissions system imposed by selinux. I tried fixing my selinux permissions and could make no sense of the whole scheme.

I was able to resolve the problem by simply disabling selinux. I did that by adding the kernel argument selinux=0.

Hope this helps,
-Christian

Last edited by cchristian; 07-29-2005 at 02:05 PM.
 
Old 07-30-2005, 10:25 AM   #5
JWilliamCupp
Member
 
Registered: Jul 2005
Location: Indiana, U.S.A.
Distribution: Fedora
Posts: 32

Rep: Reputation: 15
Re: Work around

Quote:
Originally posted by cchristian
I was able to resolve the problem by simply disabling selinux. I did that by adding the kernel argument selinux=0.
Sounds like something I'd like to try ... any help on how to do that? I'm not sure how to go about modifying kernel arguments.

- Bill
 
Old 07-30-2005, 10:52 AM   #6
JWilliamCupp
Member
 
Registered: Jul 2005
Location: Indiana, U.S.A.
Distribution: Fedora
Posts: 32

Rep: Reputation: 15
Okay. Following some guidance from Red Hat, I've found out that SELinux can be set to various modes. Running system-config-securitylevel from the terminal (logged in as root) allows the graphical management of SELinux. The manual method is to Edit /etc/selinux/config .

I see that SELinux has a mode, which can either be SELINUX=permissive or SELINUX=enforcing. In the graphical interface there is a checkblock for Enforcing? which I cleared, thus (I think) changing the mode to permissive. According to Red Hat, "This way SELinux will be running under the correct policy, but will let you login if there is a problem such as incorrect file context labeling."

Now, a reboot gives only two or three error messages, and the related services say they are starting. Most everything works. A few things don't, for instance from the graphical interface "Start Here" gives me a window at start-here:/// with three icons, namely "Applications" , "Preferences" , and "System Settings" . Each of these should navigate the window to applications:/// (and so on), but all three report ' "applications:///" is not a valid location. '

I will have to experiment and see what works and what doesn't ; also, whether even lower levels SELinux are preferred for now. Finally, I think I submit a couple of bugzilla reports at Fedora on this whole topic.

If you learn anything further in this area, please continue to post in this thread. Thanks.

- Bill
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
error while loading shared libraries: libstdc++.so.5: cannot open shared object file: Franziss Linux - Newbie 10 06-28-2010 05:47 AM
cannot open shared object file barells Linux - Software 2 07-16-2005 07:53 AM
libXfixes.so.3: cannot open shared object file props666999 Slackware 4 06-03-2005 01:12 PM
Starting X :cannot open shared object file DraaX Slackware 18 02-16-2005 08:54 AM
error while loading shared libraries: libdb-4.1.so: cannot open shared object file putquery8581 Linux - Software 1 10-01-2004 07:03 AM


All times are GMT -5. The time now is 05:19 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration