chmod -x chmod

Bash shell questions
Post Reply
User avatar
MigrationUser
Posts: 336
Joined: 2021-Jul-12, 1:37 pm
Contact:

chmod -x chmod

Post 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

Solutions:
http://www.slideshare.net/cog/chmod-x-chmod

----------------------------

#2 20 Jul 2011 11:43
flabdablet


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
Post Reply