Page 1 of 1

chmod -x chmod

Posted: 2021-Jul-25, 2:24 pm
by MigrationUser
12 Oct 2010 19:26
Simon Sheppard

Youre in a data centre, with no contact with the outside world, theres a machine you must not reboot,
and someone had the brilliant idea of performing a chmod -x chmod

solve the problem



#2 20 Jul 2011 11:43

If I have busybox:

Code: Select all

busybox chmod +x /bin/chmod
If not:

Code: Select all

cd /bin
cp cp chmod$$
cp chmod chmod$$
mv chmod$$ chmod