Re: execve() fails for everyone but root (2.0.>33)

Matti Aarnio (matti.aarnio@sonera.fi)
Wed, 14 Oct 1998 18:27:30 +0300 (EEST)


> Hello,
>
> I have a problem with the linux kernels 2.0.x where x>=34. They boot ok,
> but I can only work as root, since no other user is allowed to execute
> anything (including the shell), no matter what the permissions are.
>
> The file system is an ext2 fs, my libc is 5.4.38. With kernel 2.0.33,
> everything works fine. /bin has permissions drwxr-xr-x, btw.
> strace shows that the execve() call fails with "permission denied".

Is the dynamic linker readable/loadable by everyone ?

# ldd /bin/sh
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0000020001000000)
libtermcap.so.2 => /lib/libtermcap.so.2 (0x0000020000004000)
libdl.so.2.1 => /lib/libdl.so.2.1 (0x000002000010c000)
libc.so.6.1 => /lib/libc.so.6.1 (0x0000020000210000)

screen1# chmod 700 /lib/ld-*
screen2$ sh
bash: /bin/sh: Permission denied
screen1# chmod 755 /lib/ld-*
screen2$ sh
(another shell starts ok)

> Thanks,
> Torsten Luettgert (shaitan@physik.tu-berlin.de)

/Matti Aarnio <matti.aarnio@sonera.fi>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/