Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Always been wondering about this, I figure some hackers out there probably know. I did it on a VM and couldn't figure out what to do for the life of me.

share|improve this question

migrated from stackoverflow.com Jan 16 '13 at 1:48

This question came from our site for professional and enthusiast programmers.

3 Answers 3

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

This will fix it if you are root. Most unix and linux based OS's have perl installed and available by default.

share|improve this answer

Boring option: mount that partition from a live CD/different machine and chmod your chmod...

If you have python installed, intact and have some already executable python script you can edit, you could hijack it to call os.chmod. Or similar call in any still executable thing that can do system calls.

share|improve this answer
you wouldn't even need an executable python script; you can just run python -c .... (if python won't execute, an executable script won't help you either.) –  Eevee Jan 16 '13 at 8:33
Why the script you can edit? Just sudo python is enough. –  LtWorf Feb 22 '13 at 13:38

Switch to Single User Mode (init 1) and you should be able to restore your permissions.

In effect (though not exactly true), this logging is as a "super-root" user.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.