1 |
On Tue, 19 Jun 2007 13:17:57 -0500 |
2 |
"Boyd Stephen Smith Jr." <bss03@××××××××××.net> wrote: |
3 |
|
4 |
[snip] |
5 |
> According to http://www.die.net/doc/linux/man/man2/execve.2.html EACCES is |
6 |
> only returned by this function for a few reasons: |
7 |
> |
8 |
> 1) Search permission is denied on a component of the path prefix of filename |
9 |
> or the name of a script interpreter. (See also path_resolution(2).) |
10 |
> |
11 |
> (So, make sure /bin and / are executable by uid 1000.) |
12 |
|
13 |
Both /bin and / have 'drwxr-xr-x' permissions and /bin/zsh has the |
14 |
same, of course without 'd'. |
15 |
|
16 |
> 2) The file or a script interpreter is not a regular file. |
17 |
> |
18 |
> (So, make sure /bin/zsh is not a symlink, evidently that doesn't work.) |
19 |
|
20 |
[root@darkness:/usr] # file /bin/zsh |
21 |
/bin/zsh: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped |
22 |
|
23 |
So, it is a normal executable file. |
24 |
|
25 |
> 3) Execute permission is denied for the file or a script or ELF interpreter. |
26 |
> |
27 |
> (So, make sure that /bin/zsh and /lib/ld-linux.so* are executable. |
28 |
> If /bin/zsh is a script make sure the interpreter listed after #! is |
29 |
> executable. Proceed recursively if THAT is a script.) |
30 |
|
31 |
/lib64/ld-linux-x86-64.so.2 is a symlink to /lib64/ld-2.5.so which can |
32 |
be executed, /bin/zsh is /linked/ to the symlink and their permission |
33 |
are IMHO correct: |
34 |
|
35 |
-rwxr-xr-x 1 root root 137226 2007-06-17 16:20 /lib64/ld-2.5.so* |
36 |
lrwxrwxrwx 1 root root 9 2007-06-17 16:21 /lib64/ld-linux-x86-64.so.2 -> ld-2.5.so* |
37 |
|
38 |
> (Also, is it possible that you don't have the right /lib/ld-linux.so? See the |
39 |
> above link for some detail [the paragraph just above RETURN VALUE]. ldd |
40 |
> should be able to show you which one you need.) |
41 |
|
42 |
Well, I think it's the right one. See above. |
43 |
|
44 |
> 4) The file system is mounted noexec. |
45 |
> |
46 |
> (So, make sure that you filesystem is currently mounted exec.) |
47 |
|
48 |
As stated earlier, there is no noexec flag: |
49 |
|
50 |
/dev/sda2 on / type ext3 (rw,noatime) |
51 |
|
52 |
> If all of those check out, I think you'll have to "use the source, luke". |
53 |
> |
54 |
> > Permissions of '/': |
55 |
> > |
56 |
> > drwxr-xr-x 20 root root 4096 2007-06-17 16:21 // |
57 |
> |
58 |
> That looks a little weird, but only because of the extra '/'. |
59 |
> |
60 |
> On my system: |
61 |
> $ ls -ld / |
62 |
> drwxr-xr-x 23 root root 664 2007-06-11 20:27 / |
63 |
|
64 |
That's due to the ZSH settings/command. |
65 |
|
66 |
PS. |
67 |
I really dislike this problem :D |
68 |
|
69 |
Jan-Hendrik Zab |
70 |
-- |
71 |
| Jan-Hendrik Zab |
72 |
| +49 (0)1773392888 |
73 |
| http://www.v3ng34nce.org |
74 |
-- |
75 |
gentoo-user@g.o mailing list |