chmod -x chmod
2010-10-10 23:16:00.379226+02 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-11 00:06:46.675226+02 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 15:59:35.511226+02 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.
We will not edit your comments. However, we may delete your
comments, or cause them to be hidden behind another link, if we feel
they detract from the conversation. Commercial plugs are fine,
if they are relevant to the conversation, and if you don't
try to pretend to be a consumer. Annoying endorsements will be deleted
if you're lucky, if you're not a whole bunch of people smarter and
more articulate than you will ridicule you, and we will leave
such ridicule in place.