chmod a-x chmod Fix?

Andy Green andy at warmcat.com
Fri Jan 6 15:02:40 UTC 2006


Mathieu Chouquet-Stringer wrote:

> /lib/ld-linux.so.2 chmod (meaning as long you have +x on ld-linux.so.2 you
> can execute any file you can read).

This sounds extremely cool and dangerous, but I could not make it work.

$ cd ~
$ cp /bin/chmod .

# chmod 644 /home/agreen/chmod

$ /lib/ld-linux.so.2 /home/agreen/chmod

$ /lib/ld-linux.so.2 /home/agreen/chmod
/home/agreen/chmod: error while loading shared libraries:
/home/agreen/chmod: cannot open shared object file: No such file or
directory

$ ll /lib/ld-linux.so.2
lrwxrwxrwx  1 root root 11 Aug 24 10:45 /lib/ld-linux.so.2 -> ld-2.3.5.so
$ ll /lib/ld-2.3.5.so
-rwxr-xr-x  1 root root 126564 Aug 15 15:34 /lib/ld-2.3.5.so

-Andy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 4492 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060106/b7301091/attachment-0001.bin>


More information about the fedora-list mailing list