On Tue, 19 Jun 2007 13:17:57 -0500 "Boyd Stephen Smith Jr." <[EMAIL PROTECTED]> wrote:
[snip] > According to http://www.die.net/doc/linux/man/man2/execve.2.html EACCES is > only returned by this function for a few reasons: > > 1) Search permission is denied on a component of the path prefix of filename > or the name of a script interpreter. (See also path_resolution(2).) > > (So, make sure /bin and / are executable by uid 1000.) Both /bin and / have 'drwxr-xr-x' permissions and /bin/zsh has the same, of course without 'd'. > 2) The file or a script interpreter is not a regular file. > > (So, make sure /bin/zsh is not a symlink, evidently that doesn't work.) [EMAIL PROTECTED]:/usr] # file /bin/zsh /bin/zsh: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), for GNU/Linux 2.6.9, dynamically linked (uses shared libs), stripped So, it is a normal executable file. > 3) Execute permission is denied for the file or a script or ELF interpreter. > > (So, make sure that /bin/zsh and /lib/ld-linux.so* are executable. > If /bin/zsh is a script make sure the interpreter listed after #! is > executable. Proceed recursively if THAT is a script.) /lib64/ld-linux-x86-64.so.2 is a symlink to /lib64/ld-2.5.so which can be executed, /bin/zsh is /linked/ to the symlink and their permission are IMHO correct: -rwxr-xr-x 1 root root 137226 2007-06-17 16:20 /lib64/ld-2.5.so* lrwxrwxrwx 1 root root 9 2007-06-17 16:21 /lib64/ld-linux-x86-64.so.2 -> ld-2.5.so* > (Also, is it possible that you don't have the right /lib/ld-linux.so? See > the > above link for some detail [the paragraph just above RETURN VALUE]. ldd > should be able to show you which one you need.) Well, I think it's the right one. See above. > 4) The file system is mounted noexec. > > (So, make sure that you filesystem is currently mounted exec.) As stated earlier, there is no noexec flag: /dev/sda2 on / type ext3 (rw,noatime) > If all of those check out, I think you'll have to "use the source, luke". > > > Permissions of '/': > > > > drwxr-xr-x 20 root root 4096 2007-06-17 16:21 // > > That looks a little weird, but only because of the extra '/'. > > On my system: > $ ls -ld / > drwxr-xr-x 23 root root 664 2007-06-11 20:27 / That's due to the ZSH settings/command. PS. I really dislike this problem :D Jan-Hendrik Zab -- | Jan-Hendrik Zab | +49 (0)1773392888 | http://www.v3ng34nce.org -- [EMAIL PROTECTED] mailing list