View previous topic :: View next topic |
Author |
Message |
Simba n00b
Joined: 08 Nov 2002 Posts: 60
|
Posted: Mon Oct 03, 2005 12:26 pm Post subject: crontab can't read libc.so.6 [Solved] |
|
|
Hi,
I have a fresh gentoo server, and when I wanted to run crontab -l (I use sys-process/fcron-2.0.2),
I get this error message:
crontab: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied
and if I "strace" it (strace crontab -l) I get following output:
Code: |
execve("/usr/bin/crontab", ["crontab", "-l"], [/* 42 vars */]) = 0
uname({sys="Linux", node="linux-ha13", ...}) = 0
brk(0) = 0x8000d000
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", 0xbfc92b70) = -1 EACCES (Permission denied)
open("/lib/tls/i686/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/lib/tls/i686", 0xbfc92b70) = -1 EACCES (Permission denied)
....
|
It seems that crontab can't read /etc/ld.so.cache because of the missing permission.
this is my fcrontab:
#ls -l /usr/bin/fcrontab
---s--s--- 1 cron cron 47292 Oct 3 13:00 /usr/bin/fcrontab
and
#ls -l /etc/ld.so.cache
-rw-r--r-- 1 root root 59994 Oct 3 13:14 /etc/ld.so.cache
So, what do I forget here?
thanks,
Simba.
Last edited by Simba on Mon Oct 03, 2005 6:06 pm; edited 1 time in total |
|
Back to top |
|
|
chrisrot n00b
Joined: 01 Apr 2004 Posts: 25
|
Posted: Mon Oct 03, 2005 1:05 pm Post subject: |
|
|
Hi,
I've got nearly the same problem.
I've also a fresh gentoo server with fcron-3.0.0. I started the install on September, 30th.
I get this error message while working as root ('crontab' seems to work for ordinary users.):
Code: |
crontab: error while loading shared libraries: libpam.so.0: cannot open shared object file: Permission denied
|
Here's the output of 'strace crontab -l'
Code: |
router2 cron # strace crontab -l
execve("/usr/bin/crontab", ["crontab", "-l"], [/* 31 vars */]) = 0
uname({sys="Linux", node="router2", ...}) = 0
brk(0) = 0x8054000
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/libpam.so.0", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/lib/tls/i686", 0xbfb05614) = -1 EACCES (Permission denied)
open("/lib/tls/libpam.so.0", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/lib/tls", 0xbfb05614) = -1 EACCES (Permission denied)
open("/lib/i686/libpam.so.0", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/lib/i686", 0xbfb05614) = -1 EACCES (Permission denied)
open("/lib/libpam.so.0", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/lib", 0xbfb05614) = -1 EACCES (Permission denied)
open("/usr/lib/tls/i686/libpam.so.0", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/usr/lib/tls/i686", 0xbfb05614) = -1 EACCES (Permission denied)
open("/usr/lib/tls/libpam.so.0", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/usr/lib/tls", 0xbfb05614) = -1 EACCES (Permission denied)
open("/usr/lib/i686/libpam.so.0", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/usr/lib/i686", 0xbfb05614) = -1 EACCES (Permission denied)
open("/usr/lib/libpam.so.0", O_RDONLY) = -1 EACCES (Permission denied)
stat64("/usr/lib", 0xbfb05614) = -1 EACCES (Permission denied)
writev(2, [{"crontab", 7}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libpam.so.0", 11}, {": ", 2}, {"cannot open shared object file", 30}, {": ", 2}, {"Permission denied", 17}, {"\n", 1}], 10crontab: error while loading shared libraries: libpam.so.0: cannot open shared object file: Permission denied
) = 110
exit_group(127) = ?
|
And finaly my 'emerge --info'
Code: |
Portage 2.0.53_rc3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.5-r1, 2.6.12.5-xen i686)
=================================================================
System uname: 2.6.12.5-xen i686 Pentium III (Coppermine)
Gentoo Base System version 1.12.0_pre8
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-lang/python: 2.3.5, 2.4.2
sys-apps/sandbox: 1.2.13
sys-devel/autoconf: 2.13, 2.59-r7
sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils: 2.16.1
sys-devel/libtool: 1.5.20
virtual/os-headers: 2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -mno-tls-direct-seg-refs"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium3 -fomit-frame-pointer -mno-tls-direct-seg-refs"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distcc distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 acl acpi alsa apache2 authdaemond berkdb bitmap-fonts bzip2 bzlib crypt curl dar64 dba eds emboss encode exim fam fortran ftp gd gdbm gpm gstreamer guile imap imlib ipv6 jpeg libg++ libwww lmtp mad mime ming mp3 mysql ncurses nls nptl nptlonly ogg oggvorbis oss pam pdflib pear perl php pic pie png posix python readline samba sasl session sharedmem simplexml slang sockets spell ssl sysfs tcpd truetype-fonts type1-fonts urandom userlocales vorbis webdav xml2 xmlrpc xsl zlib userland_GNU kernel_linux elibc_glibc"
Unset: ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
|
When I change the permission of fcrontab from '---s--s---' to something like '-rwxr-xr-x' or '-rwsr-sr-x' the error messages changes to:
Code: |
15:00:18 Could not chdir to /var/spool/cron/fcrontabs: Permission denied
|
Any suggestions ? Thanks.
ciao,
christoph |
|
Back to top |
|
|
Simba n00b
Joined: 08 Nov 2002 Posts: 60
|
Posted: Mon Oct 03, 2005 4:06 pm Post subject: strange permission in root directory |
|
|
I found out that the permission of root directory is
d-wxr----t 17 root root 4096 Sep 14 17:00 /
and this is not only in 1 fresh server, but also in 2 other fresh servers.
it is somehow strange, because normally it is like
drwxr-xr-x 19 root root 4096 Jan 30 2004 /
so, after I chmod root directory to drwxr-xr-x, crontab works as properly.
Is the persmission d-wxr----t new in gentoo? or is it a bug of installation process?
thanks,
Simba |
|
Back to top |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Mon Oct 03, 2005 5:08 pm Post subject: |
|
|
Moved from Installing Gentoo to Other Things Gentoo.
Post installation problem, so better off here. _________________ Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
talk is cheap. supply exceeds demand |
|
Back to top |
|
|
chrisrot n00b
Joined: 01 Apr 2004 Posts: 25
|
Posted: Mon Oct 03, 2005 6:34 pm Post subject: |
|
|
Quote from https://forums.gentoo.org/viewtopic-t-382401-highlight-dwxrt.html
Quote: |
Try looking at "http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=5", find the red box half way down the page. This has been covered many times I believe
|
The solution is indeed
regards,
christoph |
|
Back to top |
|
|
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Thu Mar 22, 2007 3:38 pm Post subject: |
|
|
Actually, I solve this fcron problem little differently: Code: | # chgrp fcron /var/spool/cron | .
It was root:cron, and it supposed to be root:fcron, if you switch from vixie-cron to fcron. _________________ I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life |
|
Back to top |
|
|
saturday Apprentice
Joined: 20 Dec 2004 Posts: 246 Location: de/munich/home
|
Posted: Sun Mar 25, 2007 9:48 am Post subject: |
|
|
jsosic wrote: | Actually, I solve this fcron problem little differently: Code: | # chgrp fcron /var/spool/cron | .
It was root:cron, and it supposed to be root:fcron, if you switch from vixie-cron to fcron. |
Thanks, jsosic, that was my problem as well. Any idea why the permissions had changed lately? |
|
Back to top |
|
|
jsosic Guru
Joined: 02 Aug 2004 Posts: 510 Location: Split (Croatia)
|
Posted: Sun Mar 25, 2007 11:21 am Post subject: |
|
|
Well I don't understand it either why maintainer of fcron package didn't use cron user but switched to fcron... Maybe because fcron works completely differently than cron, so you don't mix up each other's directories? But then why didn't he chgrp with ebuild's postinstall?! _________________ I avenge with darkness, the blood is the life
The Order of the Dragon, I feed on human life |
|
Back to top |
|
|
saturday Apprentice
Joined: 20 Dec 2004 Posts: 246 Location: de/munich/home
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|