Ankit Patel |
I am Ankit Patel. I am currently working on obtaining my BS in Computer Science from the Rochester Institute of Technology. If all goes well, that'll be in 2013. This was supposed to be a place to showcase my pet projects and various creative endeavors, but has fallen by the wayside given my various off-line activities. |
What does one do after running “chmod -x chmod”? For the unfamiliar, chmod is the little utility that allows you to essentially change the permissions of files (as well as a few other neat things). That command there will unset the executable bit on the chmod utility. After this change, one can no longer change the permissions of any file. No one except the sorcerers of *NIX systems.
My first thought was to steal some other utility’s executable bit. My solution was to effect of :
cp cat my_chmod cat chmod > my_chmod mv my_chmod chmod
The other solutions are rather ingenious. Take a look and be amazed.