1

I have removed the executable permission from /bin/chmod

How can I recover from this scenario?

1

2 Answers 2

1

There are several methods. The easiest will probably be:

install -m a+x /bin/chmod .
./chmod

enter image description here


You can use perl. see man 2 chmod.

perl -e 'chmod 0755, "/bin/chmod"'
0
0

The simplest solution may be to boot using a live CD, mount the file system and change the permissions from there.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .