chmod -x chmod

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

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



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