1 |
Ok, two combined into one here: |
2 |
|
3 |
A. Khattri asked if I was logged in as root, yes I am. |
4 |
|
5 |
and |
6 |
|
7 |
When I said this: |
8 |
|
9 |
>> cdrtx / # ldd /usr/bin/crontab |
10 |
>> linux-gate.so.1 => (0xffffe000) |
11 |
>> libc.so.6 => /lib/libc.so.6 (0xb7ec4000) |
12 |
>> /lib/ld-linux.so.2 (0x80000000) |
13 |
|
14 |
Ian Hastie said: |
15 |
>But it's fcrontab that's having the problems. Why did you do the ldd |
16 |
>on crontab? What is fcrontab anyway and where does it come from? |
17 |
|
18 |
Well, I did the ldd on crontab, cause crontab is the command I use to edit the crontab files, like `crontab -e`. My |
19 |
cron daemon of choice is fcron, "A command scheduler with extended capabilities over cron and anacron". An on systems |
20 |
that use fcron we have this: |
21 |
|
22 |
cdrtx cdr_tx # ls -l /usr/bin/crontab |
23 |
lrwxrwxrwx 1 root root 8 Aug 26 23:45 /usr/bin/crontab -> fcrontab |
24 |
|
25 |
So fcrontab is the fcron version of crontab symlinked to look like plain ass crontab. It comes with the fcron package. |
26 |
|
27 |
Anywho...after rebuilding glibc and fcron I'm still having the same issue: |
28 |
|
29 |
cdrtx cdr_tx # crontab -e |
30 |
crontab: error while loading shared libraries: libc.so.6: cannot open shared object file: Permission denied |
31 |
|
32 |
But I can still say things like: |
33 |
|
34 |
cdrtx cdr_tx # strings /lib/libc.so.6 |wc -l |
35 |
4494 |
36 |
|
37 |
Which prove to me that I can both open and read the /lib/libc.so.6 file. |
38 |
|
39 |
So then I tried strace, like this: |
40 |
|
41 |
cdrtx cdr_tx # strace crontab -e |
42 |
execve("/usr/bin/crontab", ["crontab", "-e"], [/* 31 vars */]) = 0 |
43 |
uname({sys="Linux", node="cdrtx", ...}) = 0 |
44 |
brk(0) = 0x8052000 |
45 |
fcntl64(0, F_GETFD) = 0 |
46 |
fcntl64(1, F_GETFD) = 0 |
47 |
fcntl64(2, F_GETFD) = 0 |
48 |
access("/etc/suid-debug", F_OK) = -1 ENOENT (No such file or directory) |
49 |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) |
50 |
open("/etc/ld.so.cache", O_RDONLY) = -1 EACCES (Permission denied) |
51 |
open("/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
52 |
stat64("/lib/tls/i686/sse2", 0xbfd3ab48) = -1 EACCES (Permission denied) |
53 |
open("/lib/tls/i686/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
54 |
stat64("/lib/tls/i686", 0xbfd3ab48) = -1 EACCES (Permission denied) |
55 |
open("/lib/tls/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
56 |
stat64("/lib/tls/sse2", 0xbfd3ab48) = -1 EACCES (Permission denied) |
57 |
open("/lib/tls/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
58 |
stat64("/lib/tls", 0xbfd3ab48) = -1 EACCES (Permission denied) |
59 |
open("/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
60 |
stat64("/lib/i686/sse2", 0xbfd3ab48) = -1 EACCES (Permission denied) |
61 |
open("/lib/i686/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
62 |
stat64("/lib/i686", 0xbfd3ab48) = -1 EACCES (Permission denied) |
63 |
open("/lib/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
64 |
stat64("/lib/sse2", 0xbfd3ab48) = -1 EACCES (Permission denied) |
65 |
open("/lib/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
66 |
stat64("/lib", 0xbfd3ab48) = -1 EACCES (Permission denied) |
67 |
open("/usr/lib/tls/i686/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
68 |
stat64("/usr/lib/tls/i686/sse2", 0xbfd3ab48) = -1 EACCES (Permission denied) |
69 |
open("/usr/lib/tls/i686/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
70 |
stat64("/usr/lib/tls/i686", 0xbfd3ab48) = -1 EACCES (Permission denied) |
71 |
open("/usr/lib/tls/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
72 |
stat64("/usr/lib/tls/sse2", 0xbfd3ab48) = -1 EACCES (Permission denied) |
73 |
open("/usr/lib/tls/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
74 |
stat64("/usr/lib/tls", 0xbfd3ab48) = -1 EACCES (Permission denied) |
75 |
open("/usr/lib/i686/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
76 |
stat64("/usr/lib/i686/sse2", 0xbfd3ab48) = -1 EACCES (Permission denied) |
77 |
open("/usr/lib/i686/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
78 |
stat64("/usr/lib/i686", 0xbfd3ab48) = -1 EACCES (Permission denied) |
79 |
open("/usr/lib/sse2/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
80 |
stat64("/usr/lib/sse2", 0xbfd3ab48) = -1 EACCES (Permission denied) |
81 |
open("/usr/lib/libc.so.6", O_RDONLY) = -1 EACCES (Permission denied) |
82 |
stat64("/usr/lib", 0xbfd3ab48) = -1 EACCES (Permission denied) |
83 |
writev(2, [{"crontab", 7}, {": ", 2}, {"error while loading shared libra"..., 36}, {": ", 2}, {"libc.so.6", 9}, {": ", |
84 |
2}, {"cannot open shared object file", 30}, {": ", 2}, {"Permission denied", 17}, {"\n", 1}], 10crontab: error while |
85 |
loading shared libraries: libc.so.6: cannot open shared object file: Permission denied |
86 |
) = 108 |
87 |
exit_group(127) = ? |
88 |
|
89 |
|
90 |
I cannot open /etc/ld.so.cache! What? See: |
91 |
|
92 |
cdrtx cdr_tx # ls -l /etc/ld.so.cache |
93 |
-rw-r--r-- 1 root root 18311 Aug 27 21:13 /etc/ld.so.cache |
94 |
|
95 |
Should be able to read that as well, root nor anyother use cannot run crontab. My fcron.allow,deny and conf files all |
96 |
look perfect and should allow any user at all to run. |
97 |
|
98 |
Any other ideas? |
99 |
|
100 |
/djb |
101 |
-- |
102 |
gentoo-user@g.o mailing list |