public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] cannot load libc, permission denied
@ 2005-08-26 18:43 David Busby
  2005-08-26 22:15 ` A. Khattri
  0 siblings, 1 reply; 8+ messages in thread
From: David Busby @ 2005-08-26 18:43 UTC (permalink / raw
  To: gentoo-user

List,
   I'm getting this:

cdrtx / # fcrontab -e
fcrontab: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied

But libc looks OK to me

cdrtx / # ls -l /lib/libc*
-rwxr-xr-x  1 root root 1211416 Aug 20 22:36 /lib/libc-2.3.5.so
lrwxrwxrwx  1 root root      13 Aug 20 22:36 /lib/libc.so.6 -> libc-2.3.5.so

and revdep-rebuild said it's OK

and `equery k` said

cdrtx / # equery k libc
[ Checking sys-libs/glibc-2.3.5-r1 ]
  * 3086 out of 3086 files good
cdrtx / # equery k fcron
[ Checking sys-process/fcron-2.0.2 ]
  * 47 out of 47 files good

So what gives?  I saw some stuffs on the internet that it could be SELinux, but I dont' think I have that, I'm running a 
2005.1 system, freshly installed a few days ago.  Only odd thing I have some sun Java, see:

cdrtx / # equery l sun-jre-bin
[ Searching for package 'sun-jre-bin' in all categories among: ]
  * installed packages
[I--] [  ] dev-java/sun-jre-bin-1.4.2.08-r1 (1.4)
[I--] [M ] dev-java/sun-jre-bin-1.5.0.04 (1.5)

Ideas?

/djb
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] cannot load libc, permission denied
  2005-08-26 18:43 [gentoo-user] cannot load libc, permission denied David Busby
@ 2005-08-26 22:15 ` A. Khattri
  2005-08-26 22:44   ` David Busby
  0 siblings, 1 reply; 8+ messages in thread
From: A. Khattri @ 2005-08-26 22:15 UTC (permalink / raw
  To: gentoo-user

On Fri, 26 Aug 2005, David Busby wrote:

> cdrtx / # fcrontab -e
> fcrontab: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
>
> But libc looks OK to me
>
> cdrtx / # ls -l /lib/libc*
> -rwxr-xr-x  1 root root 1211416 Aug 20 22:36 /lib/libc-2.3.5.so
> lrwxrwxrwx  1 root root      13 Aug 20 22:36 /lib/libc.so.6 -> libc-2.3.5.so

Try rebuilding fcrontab?


-- 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] cannot load libc, permission denied
  2005-08-26 22:15 ` A. Khattri
@ 2005-08-26 22:44   ` David Busby
  2005-08-27  4:42     ` A. Khattri
  2005-08-27 18:42     ` Ian Hastie
  0 siblings, 2 replies; 8+ messages in thread
From: David Busby @ 2005-08-26 22:44 UTC (permalink / raw
  To: gentoo-user

A. Khattri wrote:
> On Fri, 26 Aug 2005, David Busby wrote:
> 
> 
>>cdrtx / # fcrontab -e
>>fcrontab: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
>>
>>But libc looks OK to me
>>
>>cdrtx / # ls -l /lib/libc*
>>-rwxr-xr-x  1 root root 1211416 Aug 20 22:36 /lib/libc-2.3.5.so
>>lrwxrwxrwx  1 root root      13 Aug 20 22:36 /lib/libc.so.6 -> libc-2.3.5.so
> 
> 
> Try rebuilding fcrontab?
> 
> 

I've re-build both glibc and fcron, no dice.  I've looked at ldd for crontab

cdrtx / # ldd /usr/bin/crontab
         linux-gate.so.1 =>  (0xffffe000)
         libc.so.6 => /lib/libc.so.6 (0xb7ec4000)
         /lib/ld-linux.so.2 (0x80000000)

Looks fine!  What's the deal?

/djb
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] cannot load libc, permission denied
  2005-08-26 22:44   ` David Busby
@ 2005-08-27  4:42     ` A. Khattri
  2005-08-27 18:42     ` Ian Hastie
  1 sibling, 0 replies; 8+ messages in thread
From: A. Khattri @ 2005-08-27  4:42 UTC (permalink / raw
  To: gentoo-user

On Fri, 26 Aug 2005, David Busby wrote:

> I've re-build both glibc and fcron, no dice.  I've looked at ldd for crontab
>
> cdrtx / # ldd /usr/bin/crontab
>          linux-gate.so.1 =>  (0xffffe000)
>          libc.so.6 => /lib/libc.so.6 (0xb7ec4000)
>          /lib/ld-linux.so.2 (0x80000000)
>
> Looks fine!  What's the deal?

Yes, that's weird. I went back and re-read your previous post: the error
is a permissions error - am I right in thinking you are logged in as right
when running fcrontab?


-- 

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] cannot load libc, permission denied
  2005-08-26 22:44   ` David Busby
  2005-08-27  4:42     ` A. Khattri
@ 2005-08-27 18:42     ` Ian Hastie
  1 sibling, 0 replies; 8+ messages in thread
From: Ian Hastie @ 2005-08-27 18:42 UTC (permalink / raw
  To: gentoo-user

On Fri, 26 Aug 2005 15:44:47 -0700
David Busby <busby@edoceo.com> wrote:

> A. Khattri wrote:
> > On Fri, 26 Aug 2005, David Busby wrote:
> > 
> > 
> >>cdrtx / # fcrontab -e
> >>fcrontab: error while loading shared libraries: libc.so.6: cannot
> >>open shared object file: Permission denied
> >>
> >>But libc looks OK to me
> >>
> >>cdrtx / # ls -l /lib/libc*
> >>-rwxr-xr-x  1 root root 1211416 Aug 20 22:36 /lib/libc-2.3.5.so
> >>lrwxrwxrwx  1 root root      13 Aug 20 22:36 /lib/libc.so.6 ->
> >>libc-2.3.5.so

> 
> cdrtx / # ldd /usr/bin/crontab
>          linux-gate.so.1 =>  (0xffffe000)
>          libc.so.6 => /lib/libc.so.6 (0xb7ec4000)
>          /lib/ld-linux.so.2 (0x80000000)
> 
> Looks fine!  What's the deal?

But it's fcrontab that's having the problems.  Why did you do the ldd
on crontab?  What is fcrontab anyway and where does it come from?

-- 
Ian.

EOM
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* [gentoo-user] cannot load libc, permission denied
@ 2005-08-27 20:16 David Busby
  2005-08-28  9:35 ` Marco Matthies
  0 siblings, 1 reply; 8+ messages in thread
From: David Busby @ 2005-08-27 20:16 UTC (permalink / raw
  To: gentoo-user

Ok, two combined into one here:

A. Khattri asked if I was logged in as root, yes I am.

and

When I said this:

 >> cdrtx / # ldd /usr/bin/crontab
 >>          linux-gate.so.1 =>  (0xffffe000)
 >>          libc.so.6 => /lib/libc.so.6 (0xb7ec4000)
 >>          /lib/ld-linux.so.2 (0x80000000)

Ian Hastie said:
 >But it's fcrontab that's having the problems.  Why did you do the ldd
 >on crontab?  What is fcrontab anyway and where does it come from?

Well, I did the ldd on crontab, cause crontab is the command I use to edit the crontab files, like `crontab -e`.  My 
cron daemon of choice is fcron, "A command scheduler with extended capabilities over cron and anacron".  An on systems 
that use fcron we have this:

cdrtx cdr_tx # ls -l /usr/bin/crontab
lrwxrwxrwx  1 root root 8 Aug 26 23:45 /usr/bin/crontab -> fcrontab

So fcrontab is the fcron version of crontab symlinked to look like plain ass crontab.  It comes with the fcron package.

Anywho...after rebuilding glibc and fcron I'm still having the same issue:

cdrtx cdr_tx # crontab -e
crontab: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied

But I can still say things like:

cdrtx cdr_tx # strings /lib/libc.so.6 |wc -l
4494

Which prove to me that I can both open and read the /lib/libc.so.6 file.

So then I tried strace, like this:

cdrtx cdr_tx # strace crontab -e
execve("/usr/bin/crontab", ["crontab", "-e"], [/* 31 vars */]) = 0
uname({sys="Linux", node="cdrtx", ...}) = 0
brk(0)                                  = 0x8052000
fcntl64(0, F_GETFD)                     = 0
fcntl64(1, F_GETFD)                     = 0
fcntl64(2, F_GETFD)                     = 0
access("/etc/suid-debug", F_OK)         = -1 ENOENT (No such file or directory)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = -1 EACCES (Permission denied)
open("/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/lib/tls/i686/sse2", 0xbfd3ab48) = -1 EACCES (Permission denied)
open("/lib/tls/i686/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/lib/tls/i686", 0xbfd3ab48)     = -1 EACCES (Permission denied)
open("/lib/tls/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/lib/tls/sse2", 0xbfd3ab48)     = -1 EACCES (Permission denied)
open("/lib/tls/libc.so.6", O_RDONLY)    = -1 EACCES (Permission denied)
stat64("/lib/tls", 0xbfd3ab48)          = -1 EACCES (Permission denied)
open("/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/lib/i686/sse2", 0xbfd3ab48)    = -1 EACCES (Permission denied)
open("/lib/i686/libc.so.6", O_RDONLY)   = -1 EACCES (Permission denied)
stat64("/lib/i686", 0xbfd3ab48)         = -1 EACCES (Permission denied)
open("/lib/sse2/libc.so.6", O_RDONLY)   = -1 EACCES (Permission denied)
stat64("/lib/sse2", 0xbfd3ab48)         = -1 EACCES (Permission denied)
open("/lib/libc.so.6", O_RDONLY)        = -1 EACCES (Permission denied)
stat64("/lib", 0xbfd3ab48)              = -1 EACCES (Permission denied)
open("/usr/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/usr/lib/tls/i686/sse2", 0xbfd3ab48) = -1 EACCES (Permission denied)
open("/usr/lib/tls/i686/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/usr/lib/tls/i686", 0xbfd3ab48) = -1 EACCES (Permission denied)
open("/usr/lib/tls/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/usr/lib/tls/sse2", 0xbfd3ab48) = -1 EACCES (Permission denied)
open("/usr/lib/tls/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/usr/lib/tls", 0xbfd3ab48)      = -1 EACCES (Permission denied)
open("/usr/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/usr/lib/i686/sse2", 0xbfd3ab48) = -1 EACCES (Permission denied)
open("/usr/lib/i686/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/usr/lib/i686", 0xbfd3ab48)     = -1 EACCES (Permission denied)
open("/usr/lib/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/usr/lib/sse2", 0xbfd3ab48)     = -1 EACCES (Permission denied)
open("/usr/lib/libc.so.6", O_RDONLY)    = -1 EACCES (Permission denied)
stat64("/usr/lib", 0xbfd3ab48)          = -1 EACCES (Permission denied)
writev(2, [{"crontab", 7}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libc.so.6", 9}, {": ", 
2}, {"cannot open shared object file", 30}, {": ", 2}, {"Permission denied", 17}, {"\n", 1}], 10crontab: error while 
loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
) = 108
exit_group(127)                         = ?


I cannot open /etc/ld.so.cache!  What? See:

cdrtx cdr_tx # ls -l /etc/ld.so.cache
-rw-r--r--  1 root root 18311 Aug 27 21:13 /etc/ld.so.cache

Should be able to read that as well, root nor anyother use cannot run crontab.  My fcron.allow,deny and conf files all 
look perfect and should allow any user at all to run.

Any other ideas?

/djb
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] cannot load libc, permission denied
  2005-08-27 20:16 David Busby
@ 2005-08-28  9:35 ` Marco Matthies
  2005-08-28 20:59   ` David Busby
  0 siblings, 1 reply; 8+ messages in thread
From: Marco Matthies @ 2005-08-28  9:35 UTC (permalink / raw
  To: gentoo-user

David Busby wrote:
> I cannot open /etc/ld.so.cache!  What? See:
> 
> cdrtx cdr_tx # ls -l /etc/ld.so.cache
> -rw-r--r--  1 root root 18311 Aug 27 21:13 /etc/ld.so.cache
> 
> Any other ideas?

I reproduced your bug and diagnostics on a vmware install of gentoo 
exactly by doing a chmod a-x /

So issuing a
chmod a+x /
should fix it if this is the cause.

But it's very weird that the execute bit should not be set on / if it's 
this what is causing your errors.

Marco
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] cannot load libc, permission denied
  2005-08-28  9:35 ` Marco Matthies
@ 2005-08-28 20:59   ` David Busby
  0 siblings, 0 replies; 8+ messages in thread
From: David Busby @ 2005-08-28 20:59 UTC (permalink / raw
  To: gentoo-user

Marco Matthies wrote:
> 
> I reproduced your bug and diagnostics on a vmware install of gentoo 
> exactly by doing a chmod a-x /
> 
> So issuing a
> chmod a+x /
> should fix it if this is the cause.
> 
> But it's very weird that the execute bit should not be set on / if it's 
> this what is causing your errors.

Yes! This fixed it!.

/djb
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-08-28 21:04 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-26 18:43 [gentoo-user] cannot load libc, permission denied David Busby
2005-08-26 22:15 ` A. Khattri
2005-08-26 22:44   ` David Busby
2005-08-27  4:42     ` A. Khattri
2005-08-27 18:42     ` Ian Hastie
  -- strict thread matches above, loose matches on Subject: below --
2005-08-27 20:16 David Busby
2005-08-28  9:35 ` Marco Matthies
2005-08-28 20:59   ` David Busby

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox