Flutterby™! : chmod -x chmod

Next unread comment / Catchup all unread comments User Account Info | Logout | XML/Pilot/etc versions | Long version (with comments) | Weblog archives | Site Map | | Browse Topics

chmod -x chmod

2010-10-10 21:16:00.379226+00 by Dan Lyke 2 comments

chmod -x chmod. A slideshow from a talk about the responses to a sysadmin interview question. The question was: "You have a machine that's not connected to the net. Someone did chmod -x chmod. How do you recover it?". Worth paging through to read the responses.

[ related topics: Net Culture ]

comments in ascending chronological order (reverse):

#Comment Re: made: 2010-10-10 22:06:46.675226+00 by: JT

rsync while preserving permissions with another box was the first thing that popped into my head... there are some really complicated answers mixed in the slideshow though. Really interesting to think about how many actual solutions there are to the same problem. Nice find.

#Comment Re: made: 2010-10-11 13:59:35.511226+00 by: meuon

After doing something stupid like that, I'd just reboot off a CD if I could. But in a production system, cat-ing that file to an existing file with execute perms would be my next choice.