Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

How can I restore the executable bit of /bin/chmod?

Writer Matthew Harrington

I have removed the executable permission from /bin/chmod

How can I recover from this scenario?

1

2 Answers

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

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

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy