While trying to learn about how ld-2.17.so
works to change the permission of chmod
executable itself, and thought if i can change the permission of ld-2.17.so
itself.
I ran chmod 666 ld-2.17.so
in a test centos 7 machine and after it I can't run any command since most of the commands use ld-2.17.so
.
I have already read this answer, Recovering from removing execute permission from ld-linux.so
It gives a very general answer but not a specific solution.
Is there anywhere in Centos7 i can find ld-2.17.so
cache to recover /lib64/ld-2.17.so
permission back to normal?
Edit: I have tried to scp
this file, /lib64/ld-2.17.so
from other machine to affected machine, but I get permission denied error.
Thank you in advance
read
doesn't used dynamic libraries. thank you – MaverickD Aug 23 '18 at 07:56ld.so
. If you don't, and you don't have a statically compiled shell (like busybox) available, you have to reboot and use recovery methods, plain and simple. As for sample executables, pick any exceptchmod
and then reinstall that command later once you have fixedld.so
. (or you can save the contents to a different file, using the sameread
method) – muru Aug 23 '18 at 07:58