How can I restore the executable bit of /bin/chmod?
Matthew Harrington
I have removed the executable permission from /bin/chmod
How can I recover from this scenario?
12 Answers
There are several methods. The easiest will probably be:
install -m a+x /bin/chmod .
./chmodYou can use perl. see man 2 chmod.
perl -e 'chmod 0755, "/bin/chmod"' 0 The simplest solution may be to boot using a live CD, mount the file system and change the permissions from there.
0